* wip reintroduce SAML SSO * Fix the imports * wip * Some tweaks * Fix the type * Reduce the textarea height * Cleanup * Fix the access issues * Make the SAML SSO active on the sidebar * Add SP's instructions * Remove the console.log * Add the condition to check SAML SSO is enabled * Replace SAML SSO with Single Sign-On * Update to SAML feature * Upgrade the @boxyhq/saml-jackson * Fix the SAML part and other cleanup * Tweaks to SAML SSO setup * Fix the type * Fix the import path * Remove samlLoginUrl * Import fixes * Simplifies endpoints Co-authored-by: zomars <[email protected]>
18 lines
835 B
TypeScript
18 lines
835 B
TypeScript
import { IS_SAML_LOGIN_ENABLED } from "../server/lib/constants";
|
|
import { login } from "./fixtures/users";
|
|
import { test } from "./lib/fixtures";
|
|
|
|
test.describe("SAML tests", () => {
|
|
test("test SAML configuration UI with [email protected]", async ({ page }) => {
|
|
// TODO: Figure out a way to use the users from fixtures here, right now we cannot set
|
|
// the SAML_ADMINS env variables dynamically
|
|
await login({ username: "pro", email: "[email protected]", password: "pro" }, page);
|
|
// eslint-disable-next-line playwright/no-skipped-test
|
|
test.skip(!IS_SAML_LOGIN_ENABLED, "It should only run if SAML is enabled");
|
|
// Try to go Security page
|
|
await page.goto("/settings/security/sso");
|
|
// It should redirect you to the event-types page
|
|
// await page.waitForSelector("[data-testid=saml_config]");
|
|
});
|
|
});
|