From 1ca751bc424a51cd96379b706cc6e4c11a859bf9 Mon Sep 17 00:00:00 2001 From: Eva Marco Date: Thu, 4 Jul 2024 12:41:48 +0200 Subject: [PATCH] :bug: Fix workspace visual test for assets modal --- frontend/playwright/data/workspace/audit-event-empty.json | 1 + frontend/playwright/ui/visual-specs/workspace.spec.js | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 frontend/playwright/data/workspace/audit-event-empty.json diff --git a/frontend/playwright/data/workspace/audit-event-empty.json b/frontend/playwright/data/workspace/audit-event-empty.json new file mode 100644 index 000000000..9e26dfeeb --- /dev/null +++ b/frontend/playwright/data/workspace/audit-event-empty.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/frontend/playwright/ui/visual-specs/workspace.spec.js b/frontend/playwright/ui/visual-specs/workspace.spec.js index 69cc5a34d..42abbcb47 100644 --- a/frontend/playwright/ui/visual-specs/workspace.spec.js +++ b/frontend/playwright/ui/visual-specs/workspace.spec.js @@ -83,6 +83,11 @@ test.describe("Assets tab", () => { "workspace/get-team-shared-libraries-non-empty.json", ); + await workspace.mockRPC( + "push-audit-events", + "workspace/audit-event-empty.json", + ); + await workspace.goToWorkspace(); await workspace.clickAssets(); await workspace.openLibrariesModal();