79277638

Date: 2024-12-13 08:46:33
Score: 0.5
Natty:
Report link

the problem with your code is that it uses cy-commands together with synchronous statements. Cy-commands get queued and run at a unpredictable moment.

The solution is to pass the value of toCountryCount to a then of the cy-command that and put the calculation (the for statement) in the .then().

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: ruud