Skip to content

Commit 84c2b7d

Browse files
authored
Update auto-restart test (#3446)
A small tweak to the e2e test to speed it up / avoid timing out in Firefox.
1 parent ece52b5 commit 84c2b7d

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎test/e2e/instance-auto-restart.e2e.ts‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,19 +120,16 @@ test('Auto restart popover, policy never', async ({ page }) => {
120120
})
121121

122122
test('Auto restart popover, cooled, policy never, cooled', async ({ page }) => {
123-
await page.goto('/projects/other-project/instances/failed-cooled-restart-never')
123+
await page.goto('/projects/other-project/instances/failed-cooled-restart-never/settings')
124124

125125
// check popover
126126
const indicator = page.getByRole('button', { name: 'Auto-restart status' })
127127
await indicator.click()
128128
await expect(page.getByText('Auto RestartDisabled')).toBeVisible()
129129
await expect(page.getByText('PolicyNever')).toBeVisible()
130-
await expect(page.getByText('Cooldown')).toBeHidden()
130+
await expect(page.getByText('Cooldown', { exact: true })).toBeHidden()
131131
await expect(page.getByText('instance will not automatically restart')).toBeVisible()
132132

133-
// go to settings tab
134-
await page.getByRole('link', { name: 'never', exact: true }).click()
135-
136133
await expect(page.getByText(/Cooldown expiration.+, 202\d.+/)).toBeVisible()
137134
await expect(page.getByText('restarting soon')).toBeHidden()
138135
await expect(page.getByText(/Last auto-restarted.+, 202\d/)).toBeVisible()

0 commit comments

Comments
 (0)