Add force on overlap of tests.

This commit is contained in:
Paulo Gustavo Veiga 2022-12-06 18:05:25 -08:00
parent 44fb333fab
commit 28940f35d1
3 changed files with 9 additions and 9 deletions

View File

@ -10,23 +10,23 @@ context('Relationship Topics', () => {
}); });
it('Add Relationship', () => { it('Add Relationship', () => {
cy.contains('Features').click(); cy.contains('Features').click({ force: true });
cy.get(`[aria-label="Add Relationship"]`).first().click(); cy.get(`[aria-label="Add Relationship"]`).click({ multiple: true });
cy.contains('Try it Now!').click(); cy.contains('Try it Now!').click();
cy.get('[test-id="11-15-relationship"]').click(); cy.get('[test-id="11-15-relationship"]').click({ force: true });
cy.get('[test-id="11-15-relationship"]').should('exist'); cy.get('[test-id="11-15-relationship"]').should('exist');
cy.matchImageSnapshot('addRelationship'); cy.matchImageSnapshot('addRelationship');
}); });
it('Delete Relationship', () => { it('Delete Relationship', () => {
cy.contains('Features').first().click(); cy.contains('Features').first().click({ force: true });
cy.get(`[aria-label="Add Relationship"]`).first().click(); cy.get(`[aria-label="Add Relationship"]`).first().click();
cy.contains('Try it Now!').first().click(); cy.contains('Try it Now!').first().click();
cy.get('[test-id="11-15-relationship"]').should('exist'); cy.get('[test-id="11-15-relationship"]').should('exist');
cy.get('[test-id="11-15-relationship"]').click(); cy.get('[test-id="11-15-relationship"]').click({ force: true });
cy.get('body').type('{backspace}'); cy.get('body').type('{backspace}');

View File

@ -24,7 +24,7 @@ context('Render all sample maps', () => {
cy.reload(); cy.reload();
cy.get('svg > path').should('be.visible'); cy.get('svg > path').should('be.visible');
cy.get('[aria-label="vortex-loading"]', { timeout: 40000 }).should('not.exist'); cy.get('[aria-label="vortex-loading"]', { timeout: 60000 }).should('not.exist');
cy.matchImageSnapshot(`map-${mapId}`); cy.matchImageSnapshot(`map-${mapId}`);
}); });
}); });

View File

@ -4,7 +4,7 @@ context('Node manager', () => {
}); });
it('shortcut add sibling node', () => { it('shortcut add sibling node', () => {
cy.contains('Mind Mapping').click(); cy.contains('Mind Mapping').click({ force: true });
cy.get('body').type('{enter}').type('Mind Mapping rocks!!').type('{enter}'); cy.get('body').type('{enter}').type('Mind Mapping rocks!!').type('{enter}');
cy.get('[test-id=36] > text > tspan').should('exist'); cy.get('[test-id=36] > text > tspan').should('exist');
@ -13,7 +13,7 @@ context('Node manager', () => {
}); });
it('shortcut add child node', () => { it('shortcut add child node', () => {
cy.contains('Mind Mapping rocks!!').click(); cy.contains('Mind Mapping rocks!!').click({ force: true });
cy.get('body').type('{insert}').type('Child 1 mind Mapping rocks!!').type('{enter}'); cy.get('body').type('{insert}').type('Child 1 mind Mapping rocks!!').type('{enter}');
cy.get('body').type('{enter}').type('Child 2 mind Mapping rocks!!').type('{enter}'); cy.get('body').type('{enter}').type('Child 2 mind Mapping rocks!!').type('{enter}');
@ -47,7 +47,7 @@ context('Node manager', () => {
}); });
it('Save changes', () => { it('Save changes', () => {
cy.contains('Mind Mapping rocks!!').click(); cy.contains('Mind Mapping rocks!!').click({ force: true });
cy.get('body').type('{ctrl}s'); cy.get('body').type('{ctrl}s');
cy.matchImageSnapshot('saveChagesShortcut'); cy.matchImageSnapshot('saveChagesShortcut');