You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using in the following way (simplified for readability):
(...) // test code that adds the page with proper name
cy
.testEl("pages-list")
.getTableContents("table-row", {
name: testValueGetter("name"),
})
.should("containSubset", [{ name: "Test Page Name" }]);
Initially the function correctly resolves the list of values, but adding new page is asynchronous so it appears some time after the assertion has already failed as it doesn't wait, it just fails the test as soon as it resolves the initial list state. Any changes in timeout configs don't help, not sure how to solve that. Any tips please?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a custom function that finds the table (list) content and returns it as an object:
(mapObjIndexed).
I'm using in the following way (simplified for readability):
With
Initially the function correctly resolves the list of values, but adding new page is asynchronous so it appears some time after the assertion has already failed as it doesn't wait, it just fails the test as soon as it resolves the initial list state. Any changes in timeout configs don't help, not sure how to solve that. Any tips please?
Beta Was this translation helpful? Give feedback.
All reactions