diff --git a/apps/dapp/playwright.config.ts b/apps/dapp/playwright.config.ts index d31a351d8..380d17452 100644 --- a/apps/dapp/playwright.config.ts +++ b/apps/dapp/playwright.config.ts @@ -23,7 +23,7 @@ export default defineConfig({ baseURL: 'http://127.0.0.1:3000', /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ - trace: 'on-first-retry', + trace: 'retain-on-failure', }, /* Configure projects for major browsers */ @@ -74,7 +74,7 @@ export default defineConfig({ }, expect: { - // Default expect timeout to 20 seconds. - timeout: 20 * 1000, + // Default expect timeout to 10 seconds. + timeout: 10 * 1000, }, }) diff --git a/apps/dapp/tests/chain.spec.ts b/apps/dapp/tests/chain.spec.ts index b57874eca..8dbdba518 100644 --- a/apps/dapp/tests/chain.spec.ts +++ b/apps/dapp/tests/chain.spec.ts @@ -6,11 +6,11 @@ import { expect, test } from '@playwright/test' import './setup' test('chain home/proposals tab renders', async ({ page }) => { - await page.goto('/dao/juno') + await page.goto('/dao/juno/proposals') // Expect no 404 error. await expect(page.getByText('404: Not Found')).not.toBeVisible({ - timeout: 5000, + timeout: 1000, }) // Expect description to exist. @@ -27,7 +27,7 @@ test('chain treasury tab renders', async ({ page }) => { // Expect no 404 error. await expect(page.getByText('404: Not Found')).not.toBeVisible({ - timeout: 5000, + timeout: 1000, }) // Expect description to exist. @@ -38,17 +38,3 @@ test('chain treasury tab renders', async ({ page }) => { // Expect "Token" title to exist. await expect(page.getByText('Token', { exact: true })).toBeVisible() }) - -test('chain subDAOs tab renders', async ({ page }) => { - await page.goto('/dao/juno/subdaos') - - // Expect no 404 error. - await expect(page.getByText('404: Not Found')).not.toBeVisible({ - timeout: 5000, - }) - - // Expect description to exist. - await expect( - page.getByText('Native chain governance for Juno Testnet.') - ).toBeVisible() -}) diff --git a/apps/dapp/tests/dao.spec.ts b/apps/dapp/tests/dao.spec.ts index 4acd118d7..4ea37598e 100644 --- a/apps/dapp/tests/dao.spec.ts +++ b/apps/dapp/tests/dao.spec.ts @@ -12,7 +12,7 @@ test('DAO home tab renders', async ({ page }) => { // Expect no 404 error. await expect(page.getByText('404: Not Found')).not.toBeVisible({ - timeout: 5000, + timeout: 1000, }) // Expect description to exist. @@ -26,7 +26,7 @@ test('DAO proposals tab renders', async ({ page }) => { // Expect no 404 error. await expect(page.getByText('404: Not Found')).not.toBeVisible({ - timeout: 5000, + timeout: 1000, }) // Expect description to exist. @@ -43,7 +43,7 @@ test('DAO treasury tab renders', async ({ page }) => { // Expect no 404 error. await expect(page.getByText('404: Not Found')).not.toBeVisible({ - timeout: 5000, + timeout: 1000, }) // Expect description to exist. @@ -63,7 +63,7 @@ test('DAO subDAOs tab renders', async ({ page }) => { // Expect no 404 error. await expect(page.getByText('404: Not Found')).not.toBeVisible({ - timeout: 5000, + timeout: 1000, }) // Expect description to exist. @@ -80,7 +80,7 @@ test('DAO members tab renders', async ({ page }) => { // Expect no 404 error. await expect(page.getByText('404: Not Found')).not.toBeVisible({ - timeout: 5000, + timeout: 1000, }) // Expect description to exist. @@ -99,7 +99,7 @@ test('DAO apps tab renders', async ({ page }) => { // Expect no 404 error. await expect(page.getByText('404: Not Found')).not.toBeVisible({ - timeout: 5000, + timeout: 1000, }) // Expect description to exist.