Skip to content
Snippets Groups Projects
Commit 7604c059 authored by Loic Huder's avatar Loic Huder
Browse files

waitForStableDOM in Cypress test for node icon/label

parent fe81f443
No related branches found
No related tags found
No related merge requests found
Pipeline #136419 passed
......@@ -45,18 +45,21 @@ it('shows/hides the node icon/label', () => {
});
cy.findByLabelText('With label').uncheck();
cy.waitForStableDOM();
cy.get('@node').within(() => {
cy.findByRole('img').should('be.visible');
cy.findByText('ewoksweb').should('not.exist');
});
cy.findByLabelText('With image').uncheck();
cy.waitForStableDOM();
cy.get('@node').within(() => {
cy.findByRole('img').should('not.exist');
cy.findByText('e').should('be.visible'); // label is cropped
});
cy.findByLabelText('With label').check();
cy.waitForStableDOM();
cy.get('@node').within(() => {
cy.findByRole('img').should('not.exist');
cy.findByText('ewoksweb').should('be.visible');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment