melodic-account-9605
07/19/2022, 5:22 PMcy.wait('@GraphQL')
at the beginning of the test, and it moves past that just fine. It stays here forever and never moves onto the next test.melodic-account-9605
07/19/2022, 5:27 PMbeforeEach(() => {
cy.intercept('POST', '/v1/graphql', (req) => {
if (req.body.operationName === 'UniqueListings') {
req.reply({ fixture: 'blahblah-UniqueListings.json' });
} else if (req.body.operationName === 'ProductForUid') {
req.reply({ fixture: 'blahblah-ProductForUid.json' });
}
}).as('GraphQL');
});
afterEach(() => {
cy.eyesClose();
});
and
it('renders the womens collection', () => {
cy.visit('http://localhost:3000/blahblah/collections/womens');
cy.wait('@GraphQL', { timeout: 10000 });
cy.eyesOpen({
appName: 'Blahblah',
testName: 'Womens Collection',
browser: { width: 800, height: 600, displayName: 'Medium Desktop' },
matchTimeout: 10000,
});
cy.get('img[alt="logo"]');
cy.wait(1000);
cy.eyesCheckWindow('Womens Collection');
});
I've integrated applitools for screenshot testing, which is what cy.eyes* ismelodic-account-9605
07/19/2022, 5:28 PMcy.eyes*
isfamous-restaurant-30435
07/19/2022, 10:03 PM