Skip to content

Commit

Permalink
try to fix playwright CI 2
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Jun 6, 2024
1 parent ba97e63 commit 1ed0b68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 38 deletions.
6 changes: 3 additions & 3 deletions apps/dapp/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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,
},
})
10 changes: 0 additions & 10 deletions apps/dapp/tests/chain.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
Expand All @@ -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.')
Expand Down
25 changes: 0 additions & 25 deletions apps/dapp/tests/dao.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
Expand All @@ -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()

Expand Down Expand Up @@ -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()

Expand All @@ -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()

Expand All @@ -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()

Expand Down

0 comments on commit 1ed0b68

Please sign in to comment.