t.me/atinfo_chat Telegram группа по автоматизации тестирования

Cypress.io - How to use ElementsCollection

cypressio
Теги: #<Tag:0x00007fb2fc961c50>

#1

I should check if the page have 20 elements.

It’s very easy with Selenide

$$("[data-test='topic-item']").shouldHave(CollectionCondition.size(20));

But I haven’t idea how to do it with Cypress.io