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:
@@ -25,7 +25,7 @@ test.describe("User Menu", () => {
|
||||
await page.getByRole("button", { name: "User menu", exact: true }).click();
|
||||
const menu = page.getByRole("menu");
|
||||
|
||||
await expect(menu.getByText(user.displayName)).toBeVisible();
|
||||
await expect(menu.getByText(user.displayName!)).toBeVisible();
|
||||
await expect(menu.getByText(user.userId)).toBeVisible();
|
||||
await expect(menu).toMatchScreenshot("user-menu.png", screenshotOptions(page));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user