0

Currently I have the current code:

And('the user sees {string}', (kpi: string, tableDef: TableDefinition) => {
asList(tableDef).forEach(color => {

Does the foreach in a cypress expression automatically leads to checking sort order? Because my test fails when testing over different environments due to timezone differences. I would like it to not check sort order but instead go over all applicable elements:

cy.get(`[data-cy="kpi-${color}"]`)

at each new color.

Mathias K
  • 13
  • 3
  • Can you post the Cypress code that is running behind your first code block? I don't really follow your question. What exactly do you want the code to do? – agoff Mar 24 '22 at 13:56
  • `forEach()` will not check sort order, but also timezone changes will not change sort order. Since you know timezone is involved, you should show how and what the error message or problem is. – Fody Mar 24 '22 at 20:32

0 Answers0