m
Size: a a a
m
m
IK
IK
IK
m
IK
F
IK
B
m
F
m
it(() => {
cy.get('.cards').then($cards => {
if ($cards.length < 10) {
cy.get('.loadMore').should('not.exist');
// вот о чем я спрашивал
cy.endTest || cy.return || cy.как_это_сделать?
}
});
cy.request('/moreCards&after=10').then(res => {
if (res.body.hasMore) {
cy.get('.loadMore').should('exist');
} else {
cy.get('.loadMore').should('not.exist');
}
});
});m
it(() => {
cy.get('.cards').then($cards => {
if ($cards.length < 10) {
cy.get('.loadMore').should('not.exist');
// вот о чем я спрашивал
cy.endTest || cy.return || cy.как_это_сделать?
}
});
cy.request('/moreCards&after=10').then(res => {
if (res.body.hasMore) {
cy.get('.loadMore').should('exist');
} else {
cy.get('.loadMore').should('not.exist');
}
});
});IK
IK
IK
m
IK
IK