https://cypress.io logo
example: beforeEach(() => { cy.intercept...
# e2e-testing
c
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