Don't expect a certain order from badges in rollback

The badge order is not deterministic which means we can't expect them to be in a certain order.
This commit is contained in:
Mole
2020-10-08 10:35:05 +02:00
parent a511575784
commit 3c29982c09

View File

@@ -331,8 +331,8 @@ context('Content', () => {
cy.reload();
// Assert
cy.get('.history').find('.umb-badge').eq(0).should('contain.text', "Save");
cy.get('.history').find('.umb-badge').eq(1).should('contain.text', "Rollback");
cy.get('.history').find('.umb-badge').contains('Save').should('be.visible');
cy.get('.history').find('.umb-badge').contains('Rollback').should('be.visible');
cy.get('#headerName').should('have.value', initialNodeName);
// Clean up (content is automatically deleted when document types are gone)