test(guardrails): retain traces from the first failed attempt

This commit is contained in:
Yuneng Jiang 2026-09-07 23:55:49 -07:00
parent 073a4129aa
commit 5395832845
No known key found for this signature in database

View file

@ -137,8 +137,10 @@ async function deleteGuardrail(page: PlaywrightPage, guardrailName: string): Pro
await expect(page.getByText(`Guardrail "${guardrailName}" deleted successfully`)).toBeVisible({ timeout: 10_000 });
}
test.use({ trace: "retain-on-failure" });
test.describe("Presidio PII guardrail, end to end from the dashboard", () => {
test.use({ storageState: ADMIN_STORAGE_PATH, trace: "retain-on-failure" });
test.use({ storageState: ADMIN_STORAGE_PATH });
test("masks PII sent from the Playground and shows the run in Logs", async ({ page, request, guardrailName }) => {
const marker = `case-ref-${Math.random().toString(36).slice(2, 10)}`;