fix(tests): dont start lib dev server while running tests
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user