diff --git a/cypress/integration/flow/custom-node.spec.js b/cypress/integration/flow/custom-node.spec.js deleted file mode 100644 index f2cfee78..00000000 --- a/cypress/integration/flow/custom-node.spec.js +++ /dev/null @@ -1,12 +0,0 @@ -describe('Custom Node Flow Rendering', () => { - before(() => { - cy.visit('/custom-node'); - }); - - it('renders initial flow', () => { - cy.get('.react-flow__renderer'); - - cy.get('.react-flow__node').should('have.length', 4); - cy.get('.react-flow__edge').should('have.length', 3); - }); -}); diff --git a/cypress/integration/flow/overview.spec.js b/cypress/integration/flow/overview.spec.js deleted file mode 100644 index 2f7ee017..00000000 --- a/cypress/integration/flow/overview.spec.js +++ /dev/null @@ -1,18 +0,0 @@ -describe('Overview Flow Rendering', () => { - before(() => { - cy.visit('/'); - }); - - it('renders a flow', () => { - cy.get('.react-flow__renderer'); - cy.get('.react-flow__node').should('have.length', 7); - cy.get('.react-flow__edge').should('have.length', 6); - }); - - it('renders a grid', () => { - cy.get('.react-flow__background'); - - const gridStroke = Cypress.$('.react-flow__background path').attr('fill'); - expect(gridStroke).to.equal('#888'); - }); -}); diff --git a/cypress/integration/flow/stress.spec.js b/cypress/integration/flow/stress.spec.js deleted file mode 100644 index 290e3ef9..00000000 --- a/cypress/integration/flow/stress.spec.js +++ /dev/null @@ -1,11 +0,0 @@ -describe('Stress Flow Rendering', () => { - before(() => { - cy.visit('/stress'); - }); - - it('renders initial flow', () => { - cy.get('.react-flow__renderer'); - cy.get('.react-flow__node').should('have.length', 100); - cy.get('.react-flow__edge').should('have.length', 99); - }); -}); diff --git a/package.json b/package.json index 5bc59d3d..b7565ab5 100644 --- a/package.json +++ b/package.json @@ -16,10 +16,12 @@ "start:examples": "npm run build && cd example && npm start", "dev:wait": "start-server-and-test start:examples http-get://localhost:3000", "build:example": "npm install && npm run build && cd example && npm install && npm run build", - "cy:run": "cypress run", "cy:open": "cypress open", "cypress": "npm run dev:wait cy:open", - "test": "npm run dev:wait cy:run", + "test:chrome": "cypress run --browser chrome", + "test:firefox": "cypress run --browser firefox", + "test:all": "npm run test:chrome && npm run test:firefox", + "test": "npm run dev:wait test:chrome", "release": "release-it" }, "dependencies": {