diff --git a/e2e/tests/ui-driven/src/create-flow.spec.ts b/e2e/tests/ui-driven/src/create-flow.spec.ts index 804171dccf..eb41809e2f 100644 --- a/e2e/tests/ui-driven/src/create-flow.spec.ts +++ b/e2e/tests/ui-driven/src/create-flow.spec.ts @@ -93,7 +93,7 @@ test.describe("Flow creation, publish and preview", () => { "Next steps", "Check your answers before sending your application", "Confirmation", - "Tell us what you think" + "Tell us what you think", ]); }); @@ -299,6 +299,5 @@ test.describe("Flow creation, publish and preview", () => { await expect( page.locator("h1", { hasText: "Tell us what you think" }), ).toBeVisible(); - }); }); diff --git a/e2e/tests/ui-driven/src/helpers/addComponent.ts b/e2e/tests/ui-driven/src/helpers/addComponent.ts index c8a1f4997e..003567d4db 100644 --- a/e2e/tests/ui-driven/src/helpers/addComponent.ts +++ b/e2e/tests/ui-driven/src/helpers/addComponent.ts @@ -6,7 +6,7 @@ const createBaseComponent = async ( locatingNode: Locator, type: ComponentType, title?: string, - options?: string[] + options?: string[], ) => { await locatingNode.click(); await page.getByRole("dialog").waitFor(); @@ -133,27 +133,27 @@ export const createQuestionWithOptions = async ( page: Page, locatingNode: Locator, questionText: string, - options: string[] + options: string[], ) => { await createBaseComponent( page, locatingNode, ComponentType.Question, questionText, - options + options, ); }; export const createNotice = async ( page: Page, locatingNode: Locator, - noticeText: string + noticeText: string, ) => { await createBaseComponent( page, locatingNode, ComponentType.Notice, - noticeText + noticeText, ); }; @@ -161,27 +161,27 @@ export const createChecklist = async ( page: Page, locatingNode: Locator, checklistTitle: string, - checklistOptions: string[] + checklistOptions: string[], ) => { await createBaseComponent( page, locatingNode, ComponentType.Checklist, checklistTitle, - checklistOptions + checklistOptions, ); }; export const createTextInput = async ( page: Page, locatingNode: Locator, - inputTitle: string + inputTitle: string, ) => { await createBaseComponent( page, locatingNode, ComponentType.TextInput, - inputTitle + inputTitle, ); }; @@ -189,27 +189,27 @@ export const createNumberInput = async ( page: Page, locatingNode: Locator, inputTitle: string, - inputUnits: string + inputUnits: string, ) => { await createBaseComponent( page, locatingNode, ComponentType.NumberInput, inputTitle, - [inputUnits] + [inputUnits], ); }; export const createDateInput = async ( page: Page, locatingNode: Locator, - inputTitle: string + inputTitle: string, ) => { await createBaseComponent( page, locatingNode, ComponentType.DateInput, - inputTitle + inputTitle, ); }; @@ -217,14 +217,14 @@ export const createAddressInput = async ( page: Page, locatingNode: Locator, inputTitle: string, - inputDataField: string + inputDataField: string, ) => { await createBaseComponent( page, locatingNode, ComponentType.AddressInput, inputTitle, - [inputDataField] + [inputDataField], ); }; @@ -232,14 +232,14 @@ export const createContactInput = async ( page: Page, locatingNode: Locator, inputTitle: string, - inputDataField: string + inputDataField: string, ) => { await createBaseComponent( page, locatingNode, ComponentType.ContactInput, inputTitle, - [inputDataField] + [inputDataField], ); }; @@ -247,14 +247,14 @@ export const createTaskList = async ( page: Page, locatingNode: Locator, title: string, - taskListOptions: string[] + taskListOptions: string[], ) => { await createBaseComponent( page, locatingNode, ComponentType.TaskList, title, - taskListOptions + taskListOptions, ); }; @@ -268,12 +268,12 @@ export const createFindProperty = async (page: Page, locatingNode: Locator) => { export const createPlanningConstraints = async ( page: Page, - locatingNode: Locator + locatingNode: Locator, ) => { await createBaseComponent( page, locatingNode, - ComponentType.PlanningConstraints + ComponentType.PlanningConstraints, ); }; @@ -284,35 +284,35 @@ export const createDrawBoundary = async (page: Page, locatingNode: Locator) => { export const createNextSteps = async ( page: Page, locatingNode: Locator, - nextSteps: string[] + nextSteps: string[], ) => { await createBaseComponent( page, locatingNode, ComponentType.NextSteps, undefined, - nextSteps + nextSteps, ); }; export const createFileUpload = async ( page: Page, locatingNode: Locator, - dataField: string + dataField: string, ) => { await createBaseComponent( page, locatingNode, ComponentType.FileUpload, undefined, - [dataField] + [dataField], ); }; async function createComponentOptions( options: string[], buttonText: string, - page: Page + page: Page, ) { let index = 0; for (const option of options) { @@ -326,14 +326,14 @@ export const createList = async ( page: Page, locatingNode: Locator, inputTitle: string, - inputDataField: string + inputDataField: string, ) => { await createBaseComponent( page, locatingNode, ComponentType.List, inputTitle, - [inputDataField] + [inputDataField], ); }; @@ -349,28 +349,28 @@ export const createUploadAndLabel = async ( page: Page, locatingNode: Locator, fileType: string, - dataField: string + dataField: string, ) => { await createBaseComponent( page, locatingNode, ComponentType.FileUploadAndLabel, undefined, - [fileType, dataField] + [fileType, dataField], ); }; export const createContent = async ( page: Page, locatingNode: Locator, - content: string + content: string, ) => { await createBaseComponent( page, locatingNode, ComponentType.Content, undefined, - [content] + [content], ); }; @@ -381,13 +381,13 @@ export const createFilter = async (page: Page, locatingNode: Locator) => { export const createInternalPortal = async ( page: Page, locatingNode: Locator, - portalName: string + portalName: string, ) => { await createBaseComponent( page, locatingNode, ComponentType.InternalPortal, - portalName + portalName, ); }; diff --git a/e2e/tests/ui-driven/src/pages/Editor.ts b/e2e/tests/ui-driven/src/pages/Editor.ts index 8c41dc3aee..bb581c1386 100644 --- a/e2e/tests/ui-driven/src/pages/Editor.ts +++ b/e2e/tests/ui-driven/src/pages/Editor.ts @@ -66,10 +66,10 @@ export class PlaywrightEditor { this.page, this.firstNode, this.answers.questionText, - ["Yes", "No"] + ["Yes", "No"], ); await expect( - this.page.locator("a").filter({ hasText: this.answers.questionText }) + this.page.locator("a").filter({ hasText: this.answers.questionText }), ).toBeVisible(); } @@ -78,17 +78,17 @@ export class PlaywrightEditor { await createNotice( this.page, this.yesBranch.locator(".hanger > a"), - this.answers.yesBranchNoticeText + this.answers.yesBranchNoticeText, ); // Add a notice to the "No" path await createNotice( this.page, this.noBranch.locator(".hanger > a"), - this.answers.noBranchNoticeText + this.answers.noBranchNoticeText, ); await expect( - this.page.locator("a").filter({ hasText: this.answers.questionText }) + this.page.locator("a").filter({ hasText: this.answers.questionText }), ).toBeVisible(); } @@ -108,7 +108,7 @@ export class PlaywrightEditor { await createTextInput( this.page, this.getNextNode(), - "Tell us about your trees." + "Tell us about your trees.", ); } @@ -117,7 +117,7 @@ export class PlaywrightEditor { this.page, this.getNextNode(), "How old are you?", - "years" + "years", ); } @@ -125,7 +125,7 @@ export class PlaywrightEditor { await createDateInput( this.page, this.getNextNode(), - "When is your birthday?" + "When is your birthday?", ); } @@ -134,7 +134,7 @@ export class PlaywrightEditor { this.page, this.getNextNode(), "What is your address?", - "some data field" + "some data field", ); } @@ -143,7 +143,7 @@ export class PlaywrightEditor { this.page, this.getNextNode(), "What is your contact info?", - "some data field" + "some data field", ); } @@ -152,7 +152,7 @@ export class PlaywrightEditor { this.page, this.getNextNode(), "What you should do next", - ["Have a cup of tea", "Continue through this flow"] + ["Have a cup of tea", "Continue through this flow"], ); } @@ -177,7 +177,7 @@ export class PlaywrightEditor { this.page, this.getNextNode(), "Property title deeds", - "some data field" + "some data field", ); } @@ -197,7 +197,7 @@ export class PlaywrightEditor { this.page, this.getNextNode(), "A list title", - "some data field" + "some data field", ); } async createResult() { @@ -220,7 +220,7 @@ export class PlaywrightEditor { await createInternalPortal( this.page, this.getNextNode(), - "an internal portal" + "an internal portal", ); }