test(examples): use new api for test examples
This commit is contained in:
@@ -20,11 +20,6 @@ describe('Empty Flow Rendering', () => {
|
||||
cy.get('body').type('{shift}', { release: true });
|
||||
});
|
||||
|
||||
it('renders an empty mini map', () => {
|
||||
cy.get('.react-flow__minimap');
|
||||
cy.get('.react-flow__minimap-node').should('not.exist');
|
||||
});
|
||||
|
||||
it('adds two nodes', () => {
|
||||
cy.contains('add node').click();
|
||||
cy.contains('add node').click();
|
||||
@@ -41,9 +36,4 @@ describe('Empty Flow Rendering', () => {
|
||||
|
||||
cy.get('.react-flow__edge').should('have.length', 1);
|
||||
});
|
||||
|
||||
it('renders mini map with two nodes', () => {
|
||||
cy.get('.react-flow__minimap');
|
||||
cy.get('.react-flow__minimap-node').should('have.length', 2);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user