glamorous-country-57678
08/04/2022, 7:55 PMcy.wait() command I was using in an earlier implementation:
`describe('visit and interact with home page', () => {
const apiURL = ${Cypress.env('apiUrl')}
it('visit and interact with home page', () => {
cy.intercept('GET', ${apiURL}/*, {
statusCode: 200,
body: {
data: {
id: '1',
},
},
}).as('getApi')
cy.intercept('POST', http://localhost:8545*, {
statusCode: 200,
body: {
data: {
id: '1',
},
},
}).as('post8545')
// cy.wait('@getApi')
cy.visit('/')
})
})`
Still refactoring this, but the test is passing and the routes display that they are stubbed like they should.