chore(cypress): use latest version
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
describe('Basic Flow Rendering', () => {
|
||||
describe('Basic Flow Rendering', { testIsolation: false }, () => {
|
||||
before(() => {
|
||||
cy.visit('/');
|
||||
});
|
||||
@@ -29,7 +29,7 @@ describe('Basic Flow Rendering', () => {
|
||||
});
|
||||
|
||||
it('selects a node by click', () => {
|
||||
cy.get('.react-flow__node:first').click({ force: true }).should('have.class', 'selected');
|
||||
cy.get('.react-flow__node:first').as('node').click({ force: true }).should('have.class', 'selected');
|
||||
});
|
||||
|
||||
it('deselects node', () => {
|
||||
@@ -38,7 +38,8 @@ describe('Basic Flow Rendering', () => {
|
||||
});
|
||||
|
||||
it('selects an edge by click', () => {
|
||||
cy.get('.react-flow__edge:first').click({ force: true }).should('have.class', 'selected');
|
||||
cy.get('.react-flow__edge:first').as('edge').click({ force: true });
|
||||
cy.get('.react-flow__edge:first').should('have.class', 'selected');
|
||||
});
|
||||
|
||||
it('deselects edge', () => {
|
||||
@@ -59,7 +60,6 @@ describe('Basic Flow Rendering', () => {
|
||||
cy.wait(200);
|
||||
|
||||
cy.get('.react-flow__node').eq(1).should('have.class', 'selected');
|
||||
|
||||
cy.get('.react-flow__node').eq(3).should('have.not.class', 'selected');
|
||||
|
||||
cy.get('.react-flow__nodesselection-rect');
|
||||
@@ -82,7 +82,7 @@ describe('Basic Flow Rendering', () => {
|
||||
cy.wait(200);
|
||||
cy.get('.react-flow__nodesselection-rect');
|
||||
|
||||
cy.get('body').type('{shift}', { release: true });
|
||||
cy.get('body').type('{shift}', { release: true, force: true });
|
||||
});
|
||||
|
||||
it('removes selection', () => {
|
||||
@@ -124,7 +124,8 @@ describe('Basic Flow Rendering', () => {
|
||||
.wait(200)
|
||||
.trigger('mouseup', { force: true, button: 0 });
|
||||
|
||||
cy.get('.react-flow__edge').should('have.length', 3);
|
||||
cy.get('.react-flow__edge').as('edge');
|
||||
cy.get('@edge').should('have.length', 3);
|
||||
});
|
||||
|
||||
// @TODO: why does this fail since react18?
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
describe('Controls Testing', () => {
|
||||
describe('Controls Testing', { testIsolation: false }, () => {
|
||||
before(() => {
|
||||
cy.visit('/');
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
describe('DragHandle Flow Rendering', () => {
|
||||
describe('DragHandle Flow Rendering', { testIsolation: false }, () => {
|
||||
before(() => {
|
||||
cy.visit('/DragHandle');
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
describe('Empty Flow Rendering', () => {
|
||||
describe('Empty Flow Rendering', { testIsolation: false }, () => {
|
||||
before(() => {
|
||||
cy.visit('/Empty');
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
describe('Figma Flow UI', () => {
|
||||
describe('Figma Flow UI', { testIsolation: false }, () => {
|
||||
before(() => {
|
||||
cy.visit('/figma');
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
describe('Hidden Flow Rendering', () => {
|
||||
describe('Hidden Flow Rendering', { testIsolation: false }, () => {
|
||||
before(() => {
|
||||
cy.visit('/Hidden');
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
describe('Interaction Flow Rendering', () => {
|
||||
describe('Interaction Flow Rendering', { testIsolation: false }, () => {
|
||||
before(() => {
|
||||
cy.visit('/Interaction');
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
describe('Minimap Testing', () => {
|
||||
describe('Minimap Testing', { testIsolation: false }, () => {
|
||||
before(() => {
|
||||
cy.visit('/');
|
||||
});
|
||||
|
||||
@@ -21,19 +21,19 @@
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "^6.3.0",
|
||||
"zustand": "^4.3.1"
|
||||
"zustand": "^4.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@cypress/skip-test": "^2.6.1",
|
||||
"@types/dagre": "^0.7.48",
|
||||
"@types/react": "^18.0.17",
|
||||
"@types/react-dom": "^18.0.6",
|
||||
"@vitejs/plugin-react": "4.0.0",
|
||||
"@vitejs/plugin-react": "4.0.4",
|
||||
"@vitejs/plugin-react-swc": "^3.3.2",
|
||||
"cypress": "12.14.0",
|
||||
"cypress-real-events": "1.8.1",
|
||||
"cypress": "12.17.3",
|
||||
"cypress-real-events": "1.10.0",
|
||||
"start-server-and-test": "^1.14.0",
|
||||
"typescript": "5.1.3",
|
||||
"vite": "4.3.9"
|
||||
"vite": "4.4.9"
|
||||
}
|
||||
}
|
||||
|
||||
5923
pnpm-lock.yaml
generated
5923
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user