From 5395832845c3d511e3d735ca6663ca3e5deacc31 Mon Sep 17 00:00:00 2001 From: Yuneng Jiang Date: Mon, 7 Sep 2026 23:55:49 -0700 Subject: [PATCH] test(guardrails): retain traces from the first failed attempt --- tests/e2e/ui/tests/guardrails/presidioUserStory.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/e2e/ui/tests/guardrails/presidioUserStory.spec.ts b/tests/e2e/ui/tests/guardrails/presidioUserStory.spec.ts index c85c54e8157..cfce784fec2 100644 --- a/tests/e2e/ui/tests/guardrails/presidioUserStory.spec.ts +++ b/tests/e2e/ui/tests/guardrails/presidioUserStory.spec.ts @@ -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)}`;