diff --git a/cypress/e2e/auth-saml.cy.ts b/cypress/e2e/auth-saml.cy.ts index ec67ddfa64ef2..25d9a32fd8bfb 100644 --- a/cypress/e2e/auth-saml.cy.ts +++ b/cypress/e2e/auth-saml.cy.ts @@ -14,7 +14,7 @@ describe('SAML Auth', () => { cy.get('[data-attr=password]').should('not.be.visible') cy.get('button[data-attr=sso-login]').should('have.text', 'Log in with Single sign-on (SAML)').click() - cy.origin('https://trial-4372086.okta.com/app/trial-4372086_posthogdev_1/exkfso4f5a5yoH2u9697/sso/saml', () => { + cy.origin(Cypress.env('E2E_SAML_ACS_URL'), () => { cy.get('input[name=identifier]') .type(Cypress.env('E2E_SAML_LOGIN_EMAIL')) .should('have.value', Cypress.env('E2E_SAML_LOGIN_EMAIL')) diff --git a/cypress/support/e2e.ts b/cypress/support/e2e.ts index 41c186c7dd079..10935a35f740f 100644 --- a/cypress/support/e2e.ts +++ b/cypress/support/e2e.ts @@ -30,6 +30,7 @@ beforeEach(() => { Cypress.env('E2E_SAML_LOGIN_EMAIL', process.env.E2E_SAML_LOGIN_EMAIL) Cypress.env('E2E_SAML_LOGIN_PASSWORD', process.env.E2E_SAML_LOGIN_PASSWORD) + Cypress.env('E2E_SAML_ACS_URL', process.env.E2E_SAML_ACS_URL) cy.useSubscriptionStatus('subscribed')