From 1b0d0ca12b0aa4828a962ca428aadd6058398acd Mon Sep 17 00:00:00 2001 From: Olga Bulat Date: Tue, 29 Oct 2024 16:56:31 +0300 Subject: [PATCH] Update tests --- frontend/test/playwright/e2e/all-results-analytics.spec.ts | 2 ++ frontend/test/playwright/e2e/attribution.spec.ts | 2 ++ frontend/test/playwright/e2e/audio-detail.spec.ts | 2 ++ frontend/test/playwright/e2e/image-detail.spec.ts | 4 ++++ 4 files changed, 10 insertions(+) diff --git a/frontend/test/playwright/e2e/all-results-analytics.spec.ts b/frontend/test/playwright/e2e/all-results-analytics.spec.ts index e8f0468036..51c6f752bb 100644 --- a/frontend/test/playwright/e2e/all-results-analytics.spec.ts +++ b/frontend/test/playwright/e2e/all-results-analytics.spec.ts @@ -68,6 +68,8 @@ test.describe("all results grid analytics test", () => { id: "da5cb478-c093-4d62-b721-cda18797e3fb", mediaType: IMAGE, provider: "flickr", + query: "birds", + position: 0, }) }) diff --git a/frontend/test/playwright/e2e/attribution.spec.ts b/frontend/test/playwright/e2e/attribution.spec.ts index c9b469be56..113b331d65 100644 --- a/frontend/test/playwright/e2e/attribution.spec.ts +++ b/frontend/test/playwright/e2e/attribution.spec.ts @@ -87,6 +87,8 @@ test.describe("attribution", () => { id: imageId, format, mediaType: "image", + query: "birds", + position: 0, }) }) }) diff --git a/frontend/test/playwright/e2e/audio-detail.spec.ts b/frontend/test/playwright/e2e/audio-detail.spec.ts index d8ec7fd2fa..72e632da8f 100644 --- a/frontend/test/playwright/e2e/audio-detail.spec.ts +++ b/frontend/test/playwright/e2e/audio-detail.spec.ts @@ -56,6 +56,8 @@ test("sends GET_MEDIA event on CTA button click", async ({ context, page }) => { expectEventPayloadToMatch(getMediaEvent, { ...audioObject, mediaType: "audio", + query: "", + position: 0, }) }) diff --git a/frontend/test/playwright/e2e/image-detail.spec.ts b/frontend/test/playwright/e2e/image-detail.spec.ts index e0cac85308..7abe65a7e2 100644 --- a/frontend/test/playwright/e2e/image-detail.spec.ts +++ b/frontend/test/playwright/e2e/image-detail.spec.ts @@ -86,6 +86,8 @@ test("sends GET_MEDIA event on CTA button click", async ({ context, page }) => { id: imageObject.id, provider: imageObject.provider, mediaType: "image", + query: "", + position: -1, }) }) @@ -106,6 +108,8 @@ test("sends RIGHT_CLICK_IMAGE event on right-click", async ({ expectEventPayloadToMatch(rightClickImageEvent, { id: imageObject.id, + query: "", + position: -1, }) })