You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Improve stability of Playwright screenshot tests (#11983)
This commit is contained in:
committed by
GitHub
parent
74ea0d134e
commit
e180ca841b
@ -28,8 +28,8 @@ test.describe("UserView", () => {
|
||||
const rightPanel = page.getByRole("complementary");
|
||||
await expect(rightPanel.getByRole("heading", { name: bot.credentials.displayName, exact: true })).toBeVisible();
|
||||
await expect(rightPanel.getByText("1 session")).toBeVisible();
|
||||
await expect(rightPanel).toHaveScreenshot("user-info.png", {
|
||||
mask: [page.locator(".mx_BaseAvatar, .mx_UserInfo_profile_mxid")],
|
||||
await expect(rightPanel).toMatchScreenshot("user-info.png", {
|
||||
mask: [page.locator(".mx_UserInfo_profile_mxid")],
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user