mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 15:03:52 +00:00
switch origin
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import { stub } from "../support/mock";
|
import { stub } from "../support/mock";
|
||||||
|
|
||||||
const CUSTOM_TEXT = "Hubba Bubba";
|
const CUSTOM_TEXT = "Hubba Bubba";
|
||||||
const IDP_URL = "https://google.com";
|
const IDP_URL = "https://example.com/idp/url";
|
||||||
|
|
||||||
describe("register idps", () => {
|
describe("register idps", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
@@ -29,8 +29,9 @@ describe("register idps", () => {
|
|||||||
|
|
||||||
it("should redirect the user to the correct url", () => {
|
it("should redirect the user to the correct url", () => {
|
||||||
cy.visit("/register/idp");
|
cy.visit("/register/idp");
|
||||||
const button = cy.get('button[e2e="google"]');
|
cy.get('button[e2e="google"]').click();
|
||||||
button.click();
|
cy.origin(IDP_URL, ()=> {
|
||||||
cy.location("href", { timeout: 10_000 }).should("eq", IDP_URL);
|
cy.location("href", { timeout: 10_000 }).should("eq", IDP_URL);
|
||||||
|
})
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user