fix(tests): dont start lib dev server while running tests

This commit is contained in:
moklick
2020-05-11 22:34:14 +02:00
parent 0d28e8fb0c
commit 65134b0afd
2 changed files with 17 additions and 23 deletions
+4 -11
View File
@@ -13,7 +13,7 @@ describe('Empty Flow Rendering', () => {
.get('.react-flow__selectionpane')
.trigger('mousedown', 'topLeft', { which: 1, force: true })
.trigger('mousemove', 'bottomRight', { which: 1 })
.trigger('mouseup', 'bottomRight', { force: true })
.trigger('mouseup', 'bottomRight', { force: true });
});
it('renders a control panel', () => {
@@ -33,12 +33,8 @@ describe('Empty Flow Rendering', () => {
});
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');
})
cy.get('.react-flow__controls-interactive').click();
});
it('renders an empty mini map', () => {
cy.get('.react-flow__minimap');
@@ -51,10 +47,7 @@ describe('Empty Flow Rendering', () => {
});
it('connects nodes', () => {
cy.get('.react-flow__node')
.first()
.find('.react-flow__handle.source')
.trigger('mousedown', { which: 1 });
cy.get('.react-flow__node').first().find('.react-flow__handle.source').trigger('mousedown', { which: 1 });
cy.get('.react-flow__node')
.last()