Files
xyflow/cypress/integration/flow/overview.spec.js
T
2020-07-21 12:50:53 +02:00

19 lines
479 B
JavaScript

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');
});
});