tests: fix minimap test.
This commit is contained in:
@@ -9,14 +9,13 @@ describe('Minimap Testing', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('has same number of nodes as the pane', () => {
|
it('has same number of nodes as the pane', () => {
|
||||||
|
cy.get('.react-flow__minimap-node').then(() => {
|
||||||
const paneNodes = Cypress.$('.react-flow__node').length;
|
const paneNodes = Cypress.$('.react-flow__node').length;
|
||||||
|
|
||||||
cy.wait(200);
|
|
||||||
|
|
||||||
const minimapNodes = Cypress.$('.react-flow__minimap-node').length;
|
const minimapNodes = Cypress.$('.react-flow__minimap-node').length;
|
||||||
|
|
||||||
expect(paneNodes).equal(minimapNodes);
|
expect(paneNodes).equal(minimapNodes);
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
it('changes zoom level', () => {
|
it('changes zoom level', () => {
|
||||||
const viewBoxBeforeZoom = Cypress.$('.react-flow__minimap svg').attr('viewBox');
|
const viewBoxBeforeZoom = Cypress.$('.react-flow__minimap svg').attr('viewBox');
|
||||||
|
|||||||
Reference in New Issue
Block a user