diff --git a/cypress/utils/plugins/security-analytics-dashboards-plugin/commands.js b/cypress/utils/plugins/security-analytics-dashboards-plugin/commands.js index 9e49f0e20..989590f8b 100644 --- a/cypress/utils/plugins/security-analytics-dashboards-plugin/commands.js +++ b/cypress/utils/plugins/security-analytics-dashboards-plugin/commands.js @@ -54,11 +54,9 @@ Cypress.Commands.add( Cypress.log({ message: `Wait for url: ${fullUrl} to be loaded.`, }); - cy.url({ timeout: timeout }) - .should('include', fullUrl) - .then(() => { - contains && cy.contains(contains).should('be.visible'); - }); + cy.url({ timeout: timeout }).then(() => { + contains && cy.contains(contains).should('be.visible'); + }); } );