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:
@@ -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();
|
||||
|
||||
@@ -34,8 +34,8 @@ test.describe("Room Directory", () => {
|
||||
});
|
||||
},
|
||||
{
|
||||
bob: bob.credentials.userId,
|
||||
charlie: charlie.credentials.userId,
|
||||
bob: bob.credentials!.userId,
|
||||
charlie: charlie.credentials!.userId,
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user