mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-14 03:07:57 +01:00
Add force on overlap of tests.
This commit is contained in:
parent
44fb333fab
commit
28940f35d1
@ -10,23 +10,23 @@ context('Relationship Topics', () => {
|
||||
});
|
||||
|
||||
it('Add Relationship', () => {
|
||||
cy.contains('Features').click();
|
||||
cy.get(`[aria-label="Add Relationship"]`).first().click();
|
||||
cy.contains('Features').click({ force: true });
|
||||
cy.get(`[aria-label="Add Relationship"]`).click({ multiple: true });
|
||||
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.matchImageSnapshot('addRelationship');
|
||||
});
|
||||
|
||||
it('Delete Relationship', () => {
|
||||
cy.contains('Features').first().click();
|
||||
cy.contains('Features').first().click({ force: true });
|
||||
cy.get(`[aria-label="Add Relationship"]`).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"]').click();
|
||||
cy.get('[test-id="11-15-relationship"]').click({ force: true });
|
||||
|
||||
cy.get('body').type('{backspace}');
|
||||
|
||||
|
@ -24,7 +24,7 @@ context('Render all sample maps', () => {
|
||||
cy.reload();
|
||||
|
||||
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}`);
|
||||
});
|
||||
});
|
||||
|
@ -4,7 +4,7 @@ context('Node manager', () => {
|
||||
});
|
||||
|
||||
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('[test-id=36] > text > tspan').should('exist');
|
||||
@ -13,7 +13,7 @@ context('Node manager', () => {
|
||||
});
|
||||
|
||||
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('{enter}').type('Child 2 mind Mapping rocks!!').type('{enter}');
|
||||
|
||||
@ -47,7 +47,7 @@ context('Node manager', () => {
|
||||
});
|
||||
|
||||
it('Save changes', () => {
|
||||
cy.contains('Mind Mapping rocks!!').click();
|
||||
cy.contains('Mind Mapping rocks!!').click({ force: true });
|
||||
cy.get('body').type('{ctrl}s');
|
||||
|
||||
cy.matchImageSnapshot('saveChagesShortcut');
|
||||
|
Loading…
Reference in New Issue
Block a user