wisemapping-frontend/packages/editor/cypress/e2e/relationship.cy.js
Paulo Gustavo Veiga 65b8be7cde Fix cypress tests.
2022-10-31 12:50:59 -07:00

25 lines
744 B
JavaScript

context('Relationship Topics', () => {
beforeEach(() => {
cy.visit('/editor.html');
cy.reload();
cy.get('[test-id="30-11-relationship"]').click({ force: true });
});
it('Add Relationship', () => {
cy.contains('Features').click();
cy.get(`[aria-label="Add Relationship"]`).click();
cy.contains('Try it Now!').click();
cy.get('[test-id="11-15-relationship"]').click({ force: true });
cy.matchImageSnapshot('addRelationship');
});
it('Delete Relationship', () => {
cy.get('[test-id="11-15-relationship"]').click({ force: true });
cy.get('body').type('{backspace}');
cy.get('[test-id="11-15-relationship"]').should('not.exist');
cy.matchImageSnapshot('delete relationship');
});
});