Skip to content

Commit

Permalink
fix(tests): add wait for FilesTable initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
MellyGray committed Sep 4, 2023
1 parent 8aab40e commit aa8f39e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ describe('FilesTable', () => {
<FilesTable files={testFiles} paginationInfo={paginationInfo} isLoading={false} />
)

cy.wait(1000) // wait for the table to load

cy.get('table > thead > tr > th > input[type=checkbox]').click()

cy.findByText('200 files are currently selected.').should('exist')
Expand All @@ -56,6 +58,8 @@ describe('FilesTable', () => {
<FilesTable files={testFiles} paginationInfo={paginationInfo} isLoading={false} />
)

cy.wait(1000) // wait for the table to load

cy.get('table > thead > tr > th > input[type=checkbox]').click()

cy.findByText('200 files are currently selected.').should('exist')
Expand Down

0 comments on commit aa8f39e

Please sign in to comment.