mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 06:52:24 +00:00
22 lines
544 B
TypeScript
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);
|
|
});
|
|
});
|
|
});
|