From 3c29982c0987baec55a3ed4ec74b40a10efb37c1 Mon Sep 17 00:00:00 2001 From: Mole Date: Thu, 8 Oct 2020 10:35:05 +0200 Subject: [PATCH] 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. --- .../cypress/integration/Content/content.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Tests.AcceptanceTest/cypress/integration/Content/content.ts b/src/Umbraco.Tests.AcceptanceTest/cypress/integration/Content/content.ts index bb121b5f5b..c63031532c 100644 --- a/src/Umbraco.Tests.AcceptanceTest/cypress/integration/Content/content.ts +++ b/src/Umbraco.Tests.AcceptanceTest/cypress/integration/Content/content.ts @@ -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)