test(nodes): multi select by click

This commit is contained in:
moklick
2020-11-05 15:24:20 +01:00
parent 7e55f8c07f
commit 84334e4b32

View File

@@ -15,6 +15,19 @@ describe('Basic Flow Rendering', () => {
cy.get('.react-flow__background');
});
it('selects two nodes by clicks', () => {
cy.get('body').type('{cmd}', { release: false });
cy.get('.react-flow__node:first')
.click()
.should('have.class', 'selected')
.get('.react-flow__node:last')
.click()
.should('have.class', 'selected')
.get('.react-flow__node:first')
.should('have.class', 'selected');
cy.get('body').type('{cmd}', { release: true });
});
it('selects a node by click', () => {
cy.get('.react-flow__node:first').click().should('have.class', 'selected');
});