added test for SAML config UI

feature/saml-login
Deepak Prabhakara 2022-01-07 19:45:49 +00:00
parent 6cc7bcf800
commit 4c87d44491
2 changed files with 12 additions and 0 deletions

View File

@ -86,6 +86,7 @@ export default function SAMLConfiguration({
{hasErrors && <Alert severity="error" title={errorMessage} />}
<textarea
data-testid="saml_config"
ref={samlConfigRef}
name="saml_config"
id="saml_config"

11
playwright/saml.test.ts Normal file
View File

@ -0,0 +1,11 @@
import { test } from "@playwright/test";
// Using logged in state from globalSteup
test.use({ storageState: "playwright/artifacts/proStorageState.json" });
test("test SAML configuration UI with pro@example.com", async ({ page }) => {
// 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]");
});