Skip to content

Commit

Permalink
fix: Update 0-4A with randomly generated poll name
Browse files Browse the repository at this point in the history
  • Loading branch information
Sital999 committed Nov 27, 2024
1 parent 06a2640 commit c8ec728
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions integration_test/lib/fixtures/poll.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { organizerWallets } from '@constants/staticWallets';
import { faker } from '@faker-js/faker';
import { test as base } from '@fixtures/walletExtension';
import {
createNewPageWithWallet,
newDelegate2Page,
newDelegate3Page,
newDelegate1Page,
newOrganizerPage,
newOrganizer1Page,
} from '@helpers/page';
import HomePage from '@pages/homePage';
Expand Down Expand Up @@ -37,6 +35,7 @@ export const test = base.extend<TestOptions & { pollId: number }>({
const homePage = new HomePage(organizerPage);
await homePage.goto();
const organizerPollPage = new PollPage(organizerPage);
const randomName = faker.commerce.productName();

let pollId: number | undefined;

Expand All @@ -50,7 +49,7 @@ export const test = base.extend<TestOptions & { pollId: number }>({
].includes(pollType)
) {
pollId = await homePage.createPoll(
'Testing Poll',
randomName,
'1111111111111111111111111111111111111111111111111111111111111112'
);
} else {
Expand Down
3 changes: 2 additions & 1 deletion integration_test/tests/0-common/comon.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ test.describe('Constitution Poll Hash', () => {

// fetch hash value
const pollPageHash = page.getByTestId('constitution-poll-hash');
await expect(pollPageHash.first()).toBeVisible({ timeout: 10_000 });
await expect(pollPageHash.first()).toBeVisible({ timeout: 20_000 });
const pollPageHashContent = await pollPageHash.innerText();

// assert hash value
Expand Down Expand Up @@ -462,6 +462,7 @@ test.describe('Wallet switching', () => {
test('0-5A Update Wallet and Role After Switching Wallets in Extension', async ({
page,
}) => {
test.slow();
await page.goto('/');

//click connect wallet button to view representative name
Expand Down

0 comments on commit c8ec728

Please sign in to comment.