Skip to content

Commit 4004826

Browse files
authored
e2e: longer timeout on image upload cancel state expect (#2688)
1 parent 2720e14 commit 4004826

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/image-upload.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ test.describe('Image upload', () => {
139139
const progressModal = page.getByRole('dialog', { name: 'Image upload progress' })
140140
await expect(progressModal).toBeVisible()
141141

142-
// wait to be in the middle of upload
142+
// wait to be in the middle of the specified step
143143
const uploadStep = page.getByTestId(`upload-step: ${state}`)
144-
await expect(uploadStep).toHaveAttribute('data-status', 'running')
144+
await expect(uploadStep).toHaveAttribute('data-status', 'running', { timeout: 10000 })
145145

146146
// form is disabled and semi-hidden
147147
// await expectNotVisible(page, ['role=textbox[name="Name"]'])

0 commit comments

Comments
 (0)