From e2a825c100c230d740da3f50e783392ce4085a4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Alvarez?= Date: Mon, 11 May 2020 03:14:43 -0300 Subject: [PATCH] feat(lock): tests for lock condition before and after button click --- cypress/integration/flow/empty.spec.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cypress/integration/flow/empty.spec.js b/cypress/integration/flow/empty.spec.js index 54f514a0..8fffb924 100644 --- a/cypress/integration/flow/empty.spec.js +++ b/cypress/integration/flow/empty.spec.js @@ -32,6 +32,14 @@ describe('Empty Flow Rendering', () => { cy.get('.react-flow__controls-fitview').click(); }); + it('uses lock view control', () => { + cy.get('.react-flow__controls-unlocked').click(); + cy.get('.react-flow__controls-unlocked').should('not.exist'); + + cy.get('.react-flow__controls-locked').click(); + cy.get('.react-flow__controls-locked').should('not.exist'); + }) + it('renders an empty mini map', () => { cy.get('.react-flow__minimap'); cy.get('.react-flow__minimap-node').should('not.exist');