https://cypress.io logo
In an E2e test, we're trying to test a table's sor...
# e2e-testing
u
In an E2e test, we're trying to test a table's sorting, by checking the values in the rows (and then clicking a certain row). For this we had:
Copy code
cy.get('.vl-data-table tbody').find('tr').contains('123456798').click();
Which worked fine, until we turned on throttling. Now we made some changes to instead do:
Copy code
cy.get('.vl-data-table tbody').find(`tr:contains('123456789')`).click();
I guess this is because the table updates more slowly now, and the
.find('tr')
actually returns old results, and does not get retried? (meaning the
.contains'
get called on old values) Is the solution we went for here the way to go (it feels a bit iffy), or is there another way this kind of thing should be done?