Skip to content

Commit

Permalink
match href not pathname
Browse files Browse the repository at this point in the history
  • Loading branch information
peintnermax committed Aug 2, 2023
1 parent 0a98bf1 commit 24e57e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/login/cypress/integration/register-idp.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

0 comments on commit 24e57e9

Please sign in to comment.