mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +01:00
31 lines
1004 B
JavaScript
31 lines
1004 B
JavaScript
context('Relationship Topics', () => {
|
|
beforeEach(() => {
|
|
cy.visit('/editor.html');
|
|
cy.reload();
|
|
cy.get('[test-id="30-11-relationship"]').first().click({ force: true });
|
|
});
|
|
|
|
it('Add Relationship', () => {
|
|
cy.contains('Features').first().click();
|
|
cy.get(`[aria-label="Add Relationship"]`).first().click();
|
|
cy.contains('Try it Now!').first().click();
|
|
|
|
cy.get('[test-id="11-15-relationship"]').first().click({ force: true });
|
|
cy.get('[test-id="11-15-relationship"]').should('exist');
|
|
|
|
cy.matchImageSnapshot('addRelationship');
|
|
});
|
|
|
|
it('Delete Relationship', () => {
|
|
cy.contains('Features').first().click();
|
|
cy.get(`[aria-label="Add Relationship"]`).first().click();
|
|
cy.contains('Try it Now!').first().click();
|
|
|
|
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');
|
|
});
|
|
});
|