Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
obulat committed Oct 29, 2024
1 parent b316ffe commit 1b0d0ca
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/test/playwright/e2e/all-results-analytics.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
})

Expand Down
2 changes: 2 additions & 0 deletions frontend/test/playwright/e2e/attribution.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ test.describe("attribution", () => {
id: imageId,
format,
mediaType: "image",
query: "birds",
position: 0,
})
})
})
2 changes: 2 additions & 0 deletions frontend/test/playwright/e2e/audio-detail.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ test("sends GET_MEDIA event on CTA button click", async ({ context, page }) => {
expectEventPayloadToMatch(getMediaEvent, {
...audioObject,
mediaType: "audio",
query: "",
position: 0,
})
})

Expand Down
4 changes: 4 additions & 0 deletions frontend/test/playwright/e2e/image-detail.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
})

Expand All @@ -106,6 +108,8 @@ test("sends RIGHT_CLICK_IMAGE event on right-click", async ({

expectEventPayloadToMatch(rightClickImageEvent, {
id: imageObject.id,
query: "",
position: -1,
})
})

Expand Down

0 comments on commit 1b0d0ca

Please sign in to comment.