use data-testid

This commit is contained in:
David Langley
2025-04-16 09:42:07 +01:00
parent a3eaf2f15e
commit 46cfe20828
2 changed files with 2 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ test.describe("RightPanel", () => {
await viewRoomSummaryByName(page, app, ROOM_NAME);
await page.getByRole("menuitem", { name: "Extensions" }).click();
await expect(page.locator(".mx_RightPanel")).toMatchScreenshot("with-extensions.png");
await expect(page.getByTestId("right-panel")).toMatchScreenshot("with-extensions.png");
await page.getByRole("button", { name: "Add extensions" }).click();
await expect(page.locator(".mx_IntegrationManager")).toBeVisible();

View File

@@ -280,7 +280,7 @@ export default class RightPanel extends React.Component<Props, IState> {
}
return (
<aside className="mx_RightPanel" id="mx_RightPanel">
<aside className="mx_RightPanel" id="mx_RightPanel" data-testid="right-panel">
{card}
</aside>
);