mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
test(guardrails): retain traces from the first failed attempt
This commit is contained in:
parent
073a4129aa
commit
5395832845
1 changed files with 3 additions and 1 deletions
|
|
@ -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)}`;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue