Files
zitadel/apps/login/cypress/integration/register-idp.cy.ts
peintnermax a2994af837 update paths
2024-08-06 09:34:45 +02:00

22 lines
544 B
TypeScript

import { stub } from "../support/mock";
const IDP_URL = "https://example.com/idp/url";
describe("register idps", () => {
beforeEach(() => {
stub("zitadel.user.v2.UserService", "StartIdentityProviderIntent", {
data: {
authUrl: IDP_URL,
},
});
});
it("should redirect the user to the correct url", () => {
cy.visit("/idp");
cy.get('button[e2e="google"]').click();
cy.origin(IDP_URL, { args: IDP_URL }, (url) => {
cy.location("href", { timeout: 10_000 }).should("eq", url);
});
});
});