Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Use the authenticated routes (because the service worker said so)
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Aug 6, 2024
1 parent 6356113 commit 835806d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playwright/e2e/timeline/timeline.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ test.describe("Timeline", () => {
axe.disableRules("color-contrast");

await page.route(
"**/_matrix/media/v3/thumbnail/matrix.org/2022-08-16_yaiSVSRIsNFfxDnV?*",
"**/_matrix/client/v1/media/thumbnail/matrix.org/2022-08-16_yaiSVSRIsNFfxDnV?*",
async (route) => {
await route.fulfill({
path: "playwright/sample-files/riot.png",
Expand All @@ -750,7 +750,7 @@ test.describe("Timeline", () => {

const requestPromises: Promise<any>[] = [
page.waitForResponse("**/_matrix/media/v3/preview_url?url=https%3A%2F%2Fcall.element.io%2F&ts=*"),
page.waitForResponse("**/_matrix/media/v3/thumbnail/matrix.org/2022-08-16_yaiSVSRIsNFfxDnV?*"),
page.waitForResponse("**/_matrix/client/v1/media/thumbnail/matrix.org/2022-08-16_yaiSVSRIsNFfxDnV?*"),
];

await app.client.sendMessage(room.roomId, "https://call.element.io/");
Expand Down

0 comments on commit 835806d

Please sign in to comment.