* Update all Yarn dependencies (2022-05-16) * Upgrade dependencies * Removes deprecated packages * Upgrades deps * Updates submodules * Update yarn.lock * Linting * Linting * Update website * Build fixes * TODO: fix this * Module resolving * Type fixes * Intercom fixes on SSG * Fixes infinite loop * Upgrades to React 18 * Type fixes * Locks node version to 14 * Upgrades daily-js * Readds missing types * Upgrades playwright * Noop when intercom is not installed * Update website * Removed yarn.lock in favor of monorepo Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com> Co-authored-by: zomars <zomars@me.com>
18 lines
682 B
TypeScript
18 lines
682 B
TypeScript
import { test } from "@playwright/test";
|
|
|
|
import { IS_SAML_LOGIN_ENABLED } from "../server/lib/constants";
|
|
|
|
test.describe("SAML tests", () => {
|
|
// Using logged in state from globalSteup
|
|
test.use({ storageState: "playwright/artifacts/proStorageState.json" });
|
|
|
|
test("test SAML configuration UI with pro@example.com", async ({ 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");
|
|
// It should redirect you to the event-types page
|
|
await page.waitForSelector("[data-testid=saml_config]");
|
|
});
|
|
});
|