Powered by
example: beforeEach(() => { cy.intercept...
# e2e-testing
c
chilly-magician-64042
08/03/2022, 7:24 PM
example: > beforeEach(() => { > cy.intercept('GET', 'http://localhost:3001/api/post?').as('getPosts') > cy.visit('/') > cy.wait('@getPosts') > }) > you must wait for this intercept
https://docs.cypress.io/api/commands/intercept#Aliasing-individual-requests
Previous
Next