Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions test/e2e/instance-auto-restart.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,19 +120,16 @@ test('Auto restart popover, policy never', async ({ page }) => {
})

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

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

// go to settings tab
await page.getByRole('link', { name: 'never', exact: true }).click()

await expect(page.getByText(/Cooldown expiration.+, 202\d.+/)).toBeVisible()
await expect(page.getByText('restarting soon')).toBeHidden()
await expect(page.getByText(/Last auto-restarted.+, 202\d/)).toBeVisible()
Expand Down
Loading