fix(tests): grid

This commit is contained in:
moklick
2019-10-09 17:36:11 +02:00
parent 4ad90ea951
commit 3eea88d533
5 changed files with 21 additions and 12 deletions
+5 -2
View File
@@ -8,8 +8,11 @@ describe('Basic Flow Rendering', () => {
cy.get('.react-flow__node').children('div').children('.react-flow__handle');
});
it('does not render a grid', () => {
cy.get('.react-flow__grid').should('not.exist');
it('renders a grid', () => {
cy.get('.react-flow__grid');
const gridStroke = Cypress.$('.react-flow__grid path').attr('stroke');
expect(gridStroke).to.equal('#eee');
});
it('selects a node', () => {