diff --git a/integration_test/lib/fixtures/poll.ts b/integration_test/lib/fixtures/poll.ts index ec75819..6bf1035 100644 --- a/integration_test/lib/fixtures/poll.ts +++ b/integration_test/lib/fixtures/poll.ts @@ -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'; @@ -37,6 +35,7 @@ export const test = base.extend({ const homePage = new HomePage(organizerPage); await homePage.goto(); const organizerPollPage = new PollPage(organizerPage); + const randomName = faker.commerce.productName(); let pollId: number | undefined; @@ -50,7 +49,7 @@ export const test = base.extend({ ].includes(pollType) ) { pollId = await homePage.createPoll( - 'Testing Poll', + randomName, '1111111111111111111111111111111111111111111111111111111111111112' ); } else { diff --git a/integration_test/tests/0-common/comon.spec.ts b/integration_test/tests/0-common/comon.spec.ts index f3791de..dfd67ab 100644 --- a/integration_test/tests/0-common/comon.spec.ts +++ b/integration_test/tests/0-common/comon.spec.ts @@ -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 @@ -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