From 1ed0b68074ea7785f32911e3d26cc73d4a60aa2b Mon Sep 17 00:00:00 2001 From: Noah Saso Date: Thu, 6 Jun 2024 15:09:58 -0400 Subject: [PATCH] try to fix playwright CI 2 --- apps/dapp/playwright.config.ts | 6 +++--- apps/dapp/tests/chain.spec.ts | 10 ---------- apps/dapp/tests/dao.spec.ts | 25 ------------------------- 3 files changed, 3 insertions(+), 38 deletions(-) diff --git a/apps/dapp/playwright.config.ts b/apps/dapp/playwright.config.ts index 380d17452..2529e6c8b 100644 --- a/apps/dapp/playwright.config.ts +++ b/apps/dapp/playwright.config.ts @@ -14,7 +14,7 @@ export default defineConfig({ /* Retry on CI only */ retries: process.env.CI ? 2 : 0, /* Opt out of parallel tests on CI. */ - workers: process.env.CI ? 1 : undefined, + // workers: process.env.CI ? 1 : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ reporter: 'html', /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ @@ -74,7 +74,7 @@ export default defineConfig({ }, expect: { - // Default expect timeout to 10 seconds. - timeout: 10 * 1000, + // Default expect timeout to 20 seconds. + timeout: 20 * 1000, }, }) diff --git a/apps/dapp/tests/chain.spec.ts b/apps/dapp/tests/chain.spec.ts index 8dbdba518..0510c6038 100644 --- a/apps/dapp/tests/chain.spec.ts +++ b/apps/dapp/tests/chain.spec.ts @@ -8,11 +8,6 @@ import './setup' test('chain home/proposals tab renders', async ({ page }) => { await page.goto('/dao/juno/proposals') - // Expect no 404 error. - await expect(page.getByText('404: Not Found')).not.toBeVisible({ - timeout: 1000, - }) - // Expect description to exist. await expect( page.getByText('Native chain governance for Juno Testnet.') @@ -25,11 +20,6 @@ test('chain home/proposals tab renders', async ({ page }) => { test('chain treasury tab renders', async ({ page }) => { await page.goto('/dao/juno/treasury') - // Expect no 404 error. - await expect(page.getByText('404: Not Found')).not.toBeVisible({ - timeout: 1000, - }) - // Expect description to exist. await expect( page.getByText('Native chain governance for Juno Testnet.') diff --git a/apps/dapp/tests/dao.spec.ts b/apps/dapp/tests/dao.spec.ts index 4ea37598e..bff3743db 100644 --- a/apps/dapp/tests/dao.spec.ts +++ b/apps/dapp/tests/dao.spec.ts @@ -10,11 +10,6 @@ test('DAO home tab renders', async ({ page }) => { '/dao/juno1vh0xndu9pj8g0lat6k3500mxusfduh804sf9hj7jpt4kgj0gmreq3jmqj4' ) - // Expect no 404 error. - await expect(page.getByText('404: Not Found')).not.toBeVisible({ - timeout: 1000, - }) - // Expect description to exist. await expect(page.getByText('Worship the moon.')).toBeVisible() }) @@ -24,11 +19,6 @@ test('DAO proposals tab renders', async ({ page }) => { '/dao/juno1vh0xndu9pj8g0lat6k3500mxusfduh804sf9hj7jpt4kgj0gmreq3jmqj4/proposals' ) - // Expect no 404 error. - await expect(page.getByText('404: Not Found')).not.toBeVisible({ - timeout: 1000, - }) - // Expect description to exist. await expect(page.getByText('Worship the moon.')).toBeVisible() @@ -61,11 +51,6 @@ test('DAO subDAOs tab renders', async ({ page }) => { '/dao/juno1vh0xndu9pj8g0lat6k3500mxusfduh804sf9hj7jpt4kgj0gmreq3jmqj4/subdaos' ) - // Expect no 404 error. - await expect(page.getByText('404: Not Found')).not.toBeVisible({ - timeout: 1000, - }) - // Expect description to exist. await expect(page.getByText('Worship the moon.')).toBeVisible() @@ -78,11 +63,6 @@ test('DAO members tab renders', async ({ page }) => { '/dao/juno1vh0xndu9pj8g0lat6k3500mxusfduh804sf9hj7jpt4kgj0gmreq3jmqj4/members' ) - // Expect no 404 error. - await expect(page.getByText('404: Not Found')).not.toBeVisible({ - timeout: 1000, - }) - // Expect description to exist. await expect(page.getByText('Worship the moon.')).toBeVisible() @@ -97,11 +77,6 @@ test('DAO apps tab renders', async ({ page }) => { '/dao/juno1vh0xndu9pj8g0lat6k3500mxusfduh804sf9hj7jpt4kgj0gmreq3jmqj4/apps' ) - // Expect no 404 error. - await expect(page.getByText('404: Not Found')).not.toBeVisible({ - timeout: 1000, - }) - // Expect description to exist. await expect(page.getByText('Worship the moon.')).toBeVisible()