mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-16 06:42:06 +00:00
22 lines
536 B
TypeScript
22 lines
536 B
TypeScript
import { stub } from "../support/mock";
|
|
|
|
const IDP_URL = "https://example.com/idp/url";
|
|
|
|
describe("register idps", () => {
|
|
beforeEach(() => {
|
|
stub("zitadel.user.v2alpha.UserService", "StartIdentityProviderFlow", {
|
|
data: {
|
|
authUrl: IDP_URL,
|
|
},
|
|
});
|
|
});
|
|
|
|
it("should redirect the user to the correct url", () => {
|
|
cy.visit("/register/idp");
|
|
cy.get('button[e2e="google"]').click();
|
|
cy.origin(IDP_URL, ()=> {
|
|
cy.location("href", { timeout: 10_000 }).should("eq", IDP_URL);
|
|
})
|
|
});
|
|
});
|