Reverting to cypress 9.7 in order to get applitools back in the game

This commit is contained in:
Knut Sveidqvist
2022-07-20 11:32:21 +02:00
parent ce1507c296
commit dee9cfea85
29 changed files with 59 additions and 20 deletions

View File

@@ -0,0 +1,19 @@
describe('Rerendering', () => {
it('should be able to render after an error has occurred', () => {
const url = 'http://localhost:9000/render-after-error.html';
cy.viewport(1440, 1024);
cy.visit(url);
cy.get('#graphDiv').should('exist');
});
it('should be able to render and rerender a graph via API', () => {
const url = 'http://localhost:9000/rerender.html';
cy.viewport(1440, 1024);
cy.visit(url);
cy.get('#graph [id^=flowchart-A]').should('have.text', 'XMas');
cy.get('body').find('#rerender').click({ force: true });
cy.get('#graph [id^=flowchart-A]').should('have.text', 'Saturday');
});
});