From 1a98f8ceadbf02c48083fb599446d444f6b1a233 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 10 Jan 2025 18:07:43 +0000 Subject: [PATCH] Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- playwright/e2e/crypto/backups-mas.spec.ts | 3 +-- playwright/e2e/csAPI.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/playwright/e2e/crypto/backups-mas.spec.ts b/playwright/e2e/crypto/backups-mas.spec.ts index 1838f9e234b..b51f7372558 100644 --- a/playwright/e2e/crypto/backups-mas.spec.ts +++ b/playwright/e2e/crypto/backups-mas.spec.ts @@ -67,8 +67,7 @@ test.describe("Key backup reset from elsewhere", () => { await page.getByRole("textbox", { name: "Name" }).fill("test room"); await page.getByRole("button", { name: "Create room" }).click(); - // @ts-ignore - this runs in the browser scope where mxMatrixClientPeg is a thing. Here, it is not. - const accessToken = await page.evaluate(() => mxMatrixClientPeg.get().getAccessToken()); + const accessToken = await page.evaluate(() => window.mxMatrixClientPeg.get().getAccessToken()); const csAPI = new TestClientServerAPI(request, homeserver, accessToken); diff --git a/playwright/e2e/csAPI.ts b/playwright/e2e/csAPI.ts index 78362506ef2..f171ded5e3b 100644 --- a/playwright/e2e/csAPI.ts +++ b/playwright/e2e/csAPI.ts @@ -21,7 +21,7 @@ export class TestClientServerAPI extends ClientServerApi { homeserver: HomeserverInstance, private accessToken: string, ) { - super(`${homeserver.baseUrl}/_matrix/client`); + super(homeserver.baseUrl); this.setRequest(request); }