Questions tagged [cypress-each]

Iteration command in a Cypress test, like for-each but applied to subjects on the Cypress command queue.

17 questions
0
votes
2 answers

How to open open card and verify the content inside then open the second card and verify the content and so on

I need to open the first card and verify that everything inside matches the hashtag 'Fashion' and then do the same for the next 3 cards and then press the 'next' button and do the same for next 4 cards. how would I do it? I tried the regular way by…
Vaddy
  • 11
  • 3
0
votes
5 answers

Looping over swiper-slides excluding cloned duplicates in cypress

I am new to Cypress and trying to loop the swiper slides excluding cloned duplicates. I am using the index of .each() in cypress but this is not working. Below is my code if (index != 0 && index >= 22) { //do something } else { //do…
140218-M
  • 29
  • 1
  • 6
1
2