Skip to content

Commit 774e465

Browse files
committed
fix: a flaky test
1 parent 53d422d commit 774e465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/component/sections/dataset/dataset-files/files-table/file-actions/edit-files-menu/EditFilesOptions.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ describe('EditFilesOptions for a single file', () => {
305305
cy.findByRole('dialog').should('exist')
306306
cy.findByText('The file will be unrestricted.').should('exist')
307307
cy.findByRole('button', { name: /Save Changes/i }).click()
308-
cy.findByRole('dialog').should('not.exist')
308+
cy.get('.modal.show', { timeout: 5000 }).should('not.exist')
309309
cy.findByText(/The file has been unrestricted./).should('exist')
310310
})
311311

0 commit comments

Comments
 (0)