Skip to content

Commit d5d70bd

Browse files
authored
Reduce e2e flake (#2113)
* try waiting for tab query param to show up * retain more traces
1 parent 1954709 commit d5d70bd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default {
2222
timeout: 2 * 60 * 1000, // 2 minutes, surely overkill
2323
fullyParallel: true,
2424
use: {
25-
trace: 'retain-on-failure',
25+
trace: 'on-first-retry',
2626
baseURL: 'http://localhost:4009',
2727
},
2828
projects: [

test/e2e/ip-pools.e2e.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ test('IP pool silo list', async ({ page }) => {
4141
await expect(page).toHaveTitle('ip-pool-1 / IP pools / Oxide Console')
4242

4343
await page.getByRole('tab', { name: 'Linked silos' }).click()
44+
// this is here because waiting for the `tab` query param to show up avoids
45+
// flake after the goBack bit below
46+
await expect(page).toHaveURL('/system/networking/ip-pools/ip-pool-1?tab=silos')
4447

4548
const table = page.getByRole('table')
4649
await expectRowVisible(table, { Silo: 'maze-war', 'Pool is silo default?': 'default' })
@@ -49,9 +52,6 @@ test('IP pool silo list', async ({ page }) => {
4952
const siloLink = page.getByRole('link', { name: 'maze-war' })
5053
await siloLink.click()
5154
await expect(page).toHaveURL('/system/silos/maze-war?tab=ip-pools')
52-
// these asserts are mostly here to kill some time before goBack
53-
await expectRowVisible(table, { name: 'ip-pool-1', Default: 'default' })
54-
await expectRowVisible(table, { name: 'ip-pool-2' })
5555
await page.goBack()
5656

5757
// unlink silo and the row is gone

0 commit comments

Comments
 (0)