From 06cec35522ab2cf9687807ef93dcf07dad6fd336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20L=C3=B3pez?= Date: Wed, 16 Mar 2022 09:51:46 -0700 Subject: [PATCH] Skip SAML tests if disabled (#2169) * Temporarily disables forgot password test * Skip SAML tests if disabled --- apps/web/playwright/saml.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web/playwright/saml.test.ts b/apps/web/playwright/saml.test.ts index f5650f8c..fd34ff33 100644 --- a/apps/web/playwright/saml.test.ts +++ b/apps/web/playwright/saml.test.ts @@ -1,9 +1,12 @@ import { test } from "@playwright/test"; +import { IS_SAML_LOGIN_ENABLED } from "../server/lib/constants"; + // Using logged in state from globalSteup test.use({ storageState: "playwright/artifacts/proStorageState.json" }); test("test SAML configuration UI with pro@example.com", async ({ page }) => { + 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