From 3091ba8067acae3b37fa6b3218d7be637348ab47 Mon Sep 17 00:00:00 2001 From: Sital999 Date: Fri, 15 Nov 2024 16:31:41 +0545 Subject: [PATCH] Switch "votingPower" twice --- integration_test/lib/pages/representativesPage.ts | 5 +++-- .../1-convention-organizers/conventionOrganizer.spec.ts | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/integration_test/lib/pages/representativesPage.ts b/integration_test/lib/pages/representativesPage.ts index 92450e0..8635043 100644 --- a/integration_test/lib/pages/representativesPage.ts +++ b/integration_test/lib/pages/representativesPage.ts @@ -1,7 +1,8 @@ import { Page, expect } from '@playwright/test'; +import { faker } from '@faker-js/faker'; -const updateDelegateEmail = 'jamejones123@email.com'; -const updatedAlternateEmail = 'sallysue123@email.com'; +const updateDelegateEmail = faker.person.fullName + '@email.com'; +const updatedAlternateEmail = faker.person.fullName + '@email.com'; const representativeUpdatedToast = 'User info updated!'; export default class RepresentativesPage { readonly updateDelegateBtn = this.page.getByTestId( diff --git a/integration_test/tests/1-convention-organizers/conventionOrganizer.spec.ts b/integration_test/tests/1-convention-organizers/conventionOrganizer.spec.ts index 054e661..d4cb803 100644 --- a/integration_test/tests/1-convention-organizers/conventionOrganizer.spec.ts +++ b/integration_test/tests/1-convention-organizers/conventionOrganizer.spec.ts @@ -291,5 +291,6 @@ test.describe('Voting Power', () => { await representativePage.switchVotingPower(); await expect(page.getByText('Active voter updated!')).toBeVisible(); await representativePage.assertSwitchedVotingPower(); + await representativePage.switchVotingPower(); }); });