Update tests

This commit is contained in:
Michael Telatynski 2026-03-27 14:26:46 +00:00
parent 2b7ea9b1bb
commit 056323aef2
No known key found for this signature in database
GPG Key ID: A2B008A5F49F5D0D
3 changed files with 4 additions and 7 deletions

View File

@ -85,7 +85,7 @@ test.describe("Device manager", () => {
// session name updated in details
await expect(firstSession.locator(".mx_DeviceDetailHeading h4").getByText(sessionName)).toBeVisible();
// and main list item
await expect(firstSession.locator(".mx_DeviceTile h4").getByText(sessionName)).toBeVisible();
await expect(firstSession.locator(".mx_DeviceTile h3").getByText(sessionName)).toBeVisible();
// sign out using the device details sign out
await firstSession.getByRole("button", { name: "Remove this session" }).click();

View File

@ -27,6 +27,7 @@ test.describe("Advanced section in Encryption tab", () => {
mask: [section.getByTestId("deviceId"), section.getByTestId("sessionKey")],
});
axe.disableRules("link-in-text-block");
await expect(axe).toHaveNoViolations();
});

View File

@ -94,9 +94,7 @@ describe("<Notifications />", () => {
const screen = render(
<MatrixClientContext.Provider value={cli}>
<Form.Root>
<NotificationSettings2 />
</Form.Root>
<NotificationSettings2 />
</MatrixClientContext.Provider>,
);
await act(waitForUpdate);
@ -109,9 +107,7 @@ describe("<Notifications />", () => {
const user = userEvent.setup();
const screen = render(
<MatrixClientContext.Provider value={cli}>
<Form.Root>
<NotificationSettings2 />
</Form.Root>
<NotificationSettings2 />
</MatrixClientContext.Provider>,
);
await act(async () => {