Skip to content

Commit 28abda9

Browse files
committed
fight the flakes
1 parent 85f9682 commit 28abda9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mock-api/msw/handlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export const handlers = makeHandlers({
219219
const disk = lookup.disk({ ...path, ...query })
220220
const diskImport = db.diskBulkImportState.get(disk.id)
221221
if (!diskImport) throw notFoundErr(`disk import for disk '${disk.id}'`)
222-
await delay(2000) // slow it down for the tests
222+
await delay(1000) // slow it down for the tests
223223
// if (Math.random() < 0.01) throw 400
224224
diskImport.blocks[body.offset] = true
225225
return 204

test/e2e/image-upload.e2e.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ test.describe('Image upload', () => {
159159
await page.getByRole('button', { name: 'Cancel' }).click()
160160
await page.getByRole('link', { name: 'Disks' }).click()
161161
await expect(page.getByRole('cell', { name: 'disk-1', exact: true })).toBeVisible()
162-
await expect(page.getByRole('cell', { name: 'tmp' })).toBeHidden()
162+
// needs a little extra time for delete to go through
163+
await expect(page.getByRole('cell', { name: 'tmp' })).toBeHidden({ timeout: 10000 })
163164
})
164165
}
165166

0 commit comments

Comments
 (0)