2022-01-25 21:57:29 +01:00
|
|
|
context('Relationship Topics', () => {
|
2022-07-13 03:58:11 +02:00
|
|
|
beforeEach(() => {
|
|
|
|
cy.visit('/editor.html');
|
|
|
|
cy.reload();
|
2022-11-01 01:49:16 +01:00
|
|
|
cy.get('[test-id="30-11-relationship"]').first().click({ force: true });
|
2022-07-13 03:58:11 +02:00
|
|
|
});
|
2022-01-25 21:57:29 +01:00
|
|
|
|
2022-10-31 16:32:51 +01:00
|
|
|
it('Add Relationship', () => {
|
2022-11-01 01:49:16 +01:00
|
|
|
cy.contains('Features').first().click();
|
|
|
|
cy.get(`[aria-label="Add Relationship"]`).first().click();
|
|
|
|
cy.contains('Try it Now!').first().click();
|
2022-10-31 16:32:51 +01:00
|
|
|
|
2022-11-01 01:49:16 +01:00
|
|
|
cy.get('[test-id="11-15-relationship"]').first().click({ force: true });
|
2022-10-31 16:32:51 +01:00
|
|
|
cy.matchImageSnapshot('addRelationship');
|
|
|
|
});
|
|
|
|
|
|
|
|
it('Delete Relationship', () => {
|
|
|
|
cy.get('[test-id="11-15-relationship"]').click({ force: true });
|
|
|
|
cy.get('body').type('{backspace}');
|
2022-01-25 21:57:29 +01:00
|
|
|
|
2022-10-31 16:32:51 +01:00
|
|
|
cy.get('[test-id="11-15-relationship"]').should('not.exist');
|
|
|
|
cy.matchImageSnapshot('delete relationship');
|
2022-07-13 03:58:11 +02:00
|
|
|
});
|
2022-01-25 21:57:29 +01:00
|
|
|
});
|