Make apps/web/playwright comply with strict mode (#34403)

* Make apps/web/playwright comply with strict mode

Otherwise it sometimes fails to compile matrix-js-sdk as strict mode & noImplicitAny both impact how overloads are asserted

* Iterate
This commit is contained in:
Michael Telatynski
2026-07-30 09:07:03 +00:00
committed by GitHub
parent 4a18eac927
commit 42253a7ae5
84 changed files with 413 additions and 388 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ test.describe("Invites", () => {
await app.settings.openUserSettings("Security & Privacy");
const ignoredUsersList = page.getByRole("list", { name: "Ignored users" });
await ignoredUsersList.scrollIntoViewIfNeeded();
await expect(ignoredUsersList.getByRole("listitem", { name: bot.credentials.userId })).toBeVisible();
await expect(ignoredUsersList.getByRole("listitem", { name: bot.credentials!.userId })).toBeVisible();
},
);
});
@@ -161,9 +161,9 @@ test.describe("Room Status Bar", () => {
});
const other = page.locator(".mx_InviteDialog_other");
await other.getByTestId("invite-dialog-input").fill(bot.credentials.userId);
await other.getByTestId("invite-dialog-input").fill(bot.credentials!.userId);
await expect(
other.getByRole("option", { name: "Alice" }).getByText(bot.credentials.userId),
other.getByRole("option", { name: "Alice" }).getByText(bot.credentials!.userId),
).toBeVisible();
await other.getByRole("option", { name: "Alice" }).click();
await other.getByRole("button", { name: "Go" }).click();
+2 -2
View File
@@ -34,8 +34,8 @@ test.describe("Room Directory", () => {
});
},
{
bob: bob.credentials.userId,
charlie: charlie.credentials.userId,
bob: bob.credentials!.userId,
charlie: charlie.credentials!.userId,
},
);