generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update e2e tests with solicitor details task
- Loading branch information
Daniel Liburd
committed
Jan 15, 2025
1 parent
134448e
commit 0b2b79b
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,3 +56,20 @@ async function completeContactNumberPage(page: Page) { | |
|
||
await confirmDetailsPage.clickSave() | ||
} | ||
|
||
export const completeSolicitorDetailsTask = async (page: Page) => { | ||
const taskListPage = new TaskListPage(page) | ||
await taskListPage.clickTask('Add solicitor details') | ||
|
||
await completeSolicitorContactInformationPage(page) | ||
} | ||
|
||
async function completeSolicitorContactInformationPage(page: Page) { | ||
const bailHearingContactPage = await ApplyPage.initialize(page, "Add solicitor's contact information") | ||
|
||
await bailHearingContactPage.fillField('Full name', 'Jay Legal') | ||
await bailHearingContactPage.fillField('Legal firm address', 'Legal Firm, 1 Winchester Road, X14 3UF') | ||
await bailHearingContactPage.fillField('Email address', '[email protected]') | ||
await bailHearingContactPage.fillField('Phone number', '11111111111') | ||
await bailHearingContactPage.clickButton('Save and continue') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters