Skip to content

Commit 15e5504

Browse files
authored
minor: Lengthen instance creating state so e2es are less likely to miss it (#2594)
lengthen instance creating state so e2es are less likely to miss it
1 parent fa27caf commit 15e5504

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mock-api/msw/handlers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ export const handlers = makeHandlers({
574574

575575
setTimeout(() => {
576576
newInstance.run_state = 'starting'
577-
}, 500)
577+
}, 1000)
578578

579579
setTimeout(() => {
580580
newInstance.run_state = 'running'

test/e2e/instance-serial.e2e.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ test('serial console can connect while starting', async ({ page }) => {
1717
await page.getByRole('button', { name: 'Create instance' }).click()
1818

1919
// now go starting to its serial console page while it's starting up
20-
await expect(page).toHaveURL('/projects/mock-project/instances/abc/storage')
20+
// don't check for URL before clicking because it takes too long, causing
21+
// us to miss the creating state
2122
await page.getByRole('tab', { name: 'Connect' }).click()
2223
await page.getByRole('main').getByRole('link', { name: 'Connect' }).click()
2324

0 commit comments

Comments
 (0)