test(integration): cleanup
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
@@ -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');
|
||||
});
|
||||
});
|
||||
@@ -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);
|
||||
});
|
||||
});
|
||||
+4
-2
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user