From 3b73afe6b94d18a5b52fe135a69646c61d13a25a Mon Sep 17 00:00:00 2001 From: niraj Date: Fri, 21 Jun 2024 11:55:05 +0545 Subject: [PATCH 1/2] chore: Change navigation of dRep details page --- .../playwright/tests/2-delegation/delegation.drep.spec.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/govtool-frontend/playwright/tests/2-delegation/delegation.drep.spec.ts b/tests/govtool-frontend/playwright/tests/2-delegation/delegation.drep.spec.ts index 572d0f788..13434f4aa 100644 --- a/tests/govtool-frontend/playwright/tests/2-delegation/delegation.drep.spec.ts +++ b/tests/govtool-frontend/playwright/tests/2-delegation/delegation.drep.spec.ts @@ -66,11 +66,7 @@ test("2N. Should show DRep information on details page", async ({ await dRepRegistrationPage.confirmBtn.click(); - const dRepDirectory = new DRepDirectoryPage(dRepPage); - await dRepDirectory.goto(); - - await dRepDirectory.searchInput.fill(wallet.dRepId); - await dRepPage.getByTestId(`${wallet.dRepId}-view-details-button`).click(); + await dRepPage.getByTestId("view-drep-details-button").click(); // Verification await expect(dRepPage.getByTestId("copy-drep-id-button")).toHaveText( From 97e8f284849b4577835fed518fea74f8de6987af Mon Sep 17 00:00:00 2001 From: niraj Date: Fri, 21 Jun 2024 11:56:08 +0545 Subject: [PATCH 2/2] chore: Add "add link" button click event on edit dRep --- .../tests/3-drep-registration/editDRep.dRep.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) 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 b5ff1317e..9434fd57b 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 @@ -19,6 +19,8 @@ test.describe("Validation of edit dRep Form", () => { const editDRepPage = new EditDRepPage(page); await editDRepPage.goto(); + await editDRepPage.addLinkBtn.click(); + for (let i = 0; i < 100; i++) { await editDRepPage.validateForm( faker.internet.displayName(), @@ -44,6 +46,8 @@ test.describe("Validation of edit dRep Form", () => { const editDRepPage = new EditDRepPage(page); await editDRepPage.goto(); + await editDRepPage.addLinkBtn.click(); + for (let i = 0; i < 100; i++) { await editDRepPage.inValidateForm( mockInvalid.name(),