From 24e57e992bc968d65e4e46c49a99c36911b0652f Mon Sep 17 00:00:00 2001 From: peintnermax Date: Wed, 2 Aug 2023 15:02:36 +0200 Subject: [PATCH] match href not pathname --- apps/login/cypress/integration/register-idp.cy.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/login/cypress/integration/register-idp.cy.ts b/apps/login/cypress/integration/register-idp.cy.ts index 32b60c4a..518a3c59 100644 --- a/apps/login/cypress/integration/register-idp.cy.ts +++ b/apps/login/cypress/integration/register-idp.cy.ts @@ -27,11 +27,10 @@ describe("register idps", () => { }); }); - it("should show a custom text on the idp button", () => { + it("should redirect the user to the correct url", () => { cy.visit("/register/idp"); const button = cy.get('button[e2e="google"]'); - // button.find("span").contains(CUSTOM_TEXT); button.click(); - cy.location("pathname", { timeout: 10_000 }).should("eq", IDP_URL); + cy.location("href", { timeout: 10_000 }).should("eq", IDP_URL); }); });