From 94f9bb584ff2396c5a991b6236f4d8e9f6e96e3d Mon Sep 17 00:00:00 2001 From: Craig Perkins Date: Wed, 29 Jan 2025 21:41:30 -0500 Subject: [PATCH] Move up by 1 Signed-off-by: Craig Perkins --- test/cypress/e2e/saml/saml_auth_test.spec.js | 2 +- test/cypress/support/commands.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cypress/e2e/saml/saml_auth_test.spec.js b/test/cypress/e2e/saml/saml_auth_test.spec.js index 7c27d6f6..54abbf11 100644 --- a/test/cypress/e2e/saml/saml_auth_test.spec.js +++ b/test/cypress/e2e/saml/saml_auth_test.spec.js @@ -28,7 +28,7 @@ before(() => { cy.intercept('https://localhost:9200'); // Avoid Cypress lock onto the ipv4 range, so fake `visit()` before `request()`. - // See: https://github.com/cypress-io/cypress/issues/25397#issuecomment-1402556488 + // See: https://github.com/cypress-io/cypress/issues/25397#issuecomment-1402556488 if (Cypress.env('loginMethod') === 'saml_multiauth') { cy.visit(`http://localhost:5601${basePath}`); } else { diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index cebfd2de..9d0f7150 100644 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -88,8 +88,8 @@ Cypress.Commands.add('loginWithSaml', () => { Cypress.Commands.add('loginWithSamlMultiauth', () => { cy.get('a[aria-label="saml_login_button"]').should('be.visible'); - cy.get('a[aria-label="saml_login_button"]').should('be.visible').click(); cy.origin('http://[::1]:7000', () => { + cy.get('a[aria-label="saml_login_button"]').should('be.visible').click(); cy.get('input[id=userName]').should('be.visible'); cy.get('button[id=btn-sign-in]').should('be.visible').click(); });