test(integration): cleanup

This commit is contained in:
moklick
2020-07-21 13:08:47 +02:00
parent d642d66574
commit c1734af953
4 changed files with 4 additions and 43 deletions
@@ -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);
});
});
-18
View File
@@ -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');
});
});
-11
View File
@@ -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
View File
@@ -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": {