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 af5341e commit 62487a8
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 62487a8

Please sign in to comment.