Update e2e tests for collapsible result

This commit is contained in:
Michael Shamoon 2022-05-27 10:55:14 -07:00
parent cd44151e16
commit a90dd2ad1e

@ -40,7 +40,7 @@ describe('tasks', () => {
}) })
it('should show a list of dismissable tasks in tabs', () => { it('should show a list of dismissable tasks in tabs', () => {
cy.get('tbody').find('tr:visible').its('length').should('eq', 5) cy.get('tbody').find('tr:visible').its('length').should('eq', 10) // double because collapsible result tr
cy.wait(500) // stabilizes the test, for some reason... cy.wait(500) // stabilizes the test, for some reason...
cy.get('tbody') cy.get('tbody')
.find('button:visible') .find('button:visible')
@ -50,7 +50,7 @@ describe('tasks', () => {
.wait('@tasks') .wait('@tasks')
.wait(2000) .wait(2000)
.then(() => { .then(() => {
cy.get('tbody').find('tr:visible').its('length').should('eq', 4) cy.get('tbody').find('tr:visible').its('length').should('eq', 8) // double because collapsible result tr
}) })
}) })