feat(lock): tests for lock condition before and after button click

This commit is contained in:
Sebastián Alvarez
2020-05-11 03:14:43 -03:00
parent 7514e2fb86
commit e2a825c100

View File

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