Skip SAML tests if disabled (#2169)

* Temporarily disables forgot password test

* Skip SAML tests if disabled
This commit is contained in:
Omar López
2022-03-16 09:51:46 -07:00
committed by GitHub
parent 18c21d9b97
commit 06cec35522

View File

@@ -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