From 2631b127718ec428721709babfc0941c50674d39 Mon Sep 17 00:00:00 2001 From: Niraj Date: Wed, 6 Nov 2024 15:57:30 +0545 Subject: [PATCH] chore: update dRep name validation with mockValid name --- .../tests/3-drep-registration/dRepRegistration.loggedin.spec.ts | 2 +- .../playwright/tests/3-drep-registration/editDRep.dRep.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/govtool-frontend/playwright/tests/3-drep-registration/dRepRegistration.loggedin.spec.ts b/tests/govtool-frontend/playwright/tests/3-drep-registration/dRepRegistration.loggedin.spec.ts index 21afc8703..729b87568 100644 --- a/tests/govtool-frontend/playwright/tests/3-drep-registration/dRepRegistration.loggedin.spec.ts +++ b/tests/govtool-frontend/playwright/tests/3-drep-registration/dRepRegistration.loggedin.spec.ts @@ -60,7 +60,7 @@ test.describe("Validation of dRep Registration Form", () => { for (let i = 0; i < 100; i++) { await dRepRegistrationPage.validateForm({ - name: faker.internet.displayName(), + name: mockValid.name(), objectives: faker.lorem.paragraph(2), motivations: faker.lorem.paragraph(2), qualifications: faker.lorem.paragraph(2), diff --git a/tests/govtool-frontend/playwright/tests/3-drep-registration/editDRep.dRep.spec.ts b/tests/govtool-frontend/playwright/tests/3-drep-registration/editDRep.dRep.spec.ts index 95a90f0e9..656dc4714 100644 --- a/tests/govtool-frontend/playwright/tests/3-drep-registration/editDRep.dRep.spec.ts +++ b/tests/govtool-frontend/playwright/tests/3-drep-registration/editDRep.dRep.spec.ts @@ -27,7 +27,7 @@ test.describe("Validation of edit dRep Form", () => { for (let i = 0; i < 100; i++) { await editDRepPage.validateForm({ - name: faker.internet.displayName(), + name: mockValid.name(), objectives: faker.lorem.paragraph(2), motivations: faker.lorem.paragraph(2), qualifications: faker.lorem.paragraph(2),