Skip to content
RED SAGSkills
medium10 pts · first answer countscypressnetwork

Waiting for a request in Cypress

What does this Cypress code do?

cy.intercept('GET', '/api/users*').as('getUsers')
cy.visit('/admin/users')
cy.wait('@getUsers').its('response.statusCode').should('eq', 200)
cy.get('[data-testid=user-row]').should('have.length.greaterThan', 0)
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions