Skip to content

Commit

Permalink
SWC-6605: fix handling of intermittently appearing file upload alert
Browse files Browse the repository at this point in the history
  • Loading branch information
hallieswan committed Nov 28, 2023
1 parent c2f3cd7 commit 6fdcb49
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions e2e/files.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,21 +422,19 @@ test.describe('Files', () => {
await testAuth.step('upload a new file', async () => {
await uploadFile(userPage, updatedFilePath, 'newVersion')
await expectFilePageLoaded(fileName, fileEntityId, userPage)
await dismissFileUploadAlert(userPage)
// Upload success alert intermittently appears when uploading a new version of the same file
await testAuth.step(
'dismiss file upload alert for new version of file, if visible',
async () => {
if (
await userPage.getByText('File successfully uploaded').isVisible()
) {
await dismissFileUploadAlert(userPage)
}
},
)
})

// Upload success alert intermittently appears when uploading a new version of the same file
await testAuth.step(
'dismiss file upload alert for new version of file, if visible',
async () => {
if (
await userPage.getByText('File successfully uploaded').isVisible()
) {
await dismissFileUploadAlert(userPage)
}
},
)

await testAuth.step(
'confirm uploading new file changed md5 and version',
async () => {
Expand Down

0 comments on commit 6fdcb49

Please sign in to comment.