From 46cfe20828d9d214f688d3f97a97023133bb3311 Mon Sep 17 00:00:00 2001 From: David Langley Date: Wed, 16 Apr 2025 09:42:07 +0100 Subject: [PATCH] use data-testid --- playwright/e2e/right-panel/right-panel.spec.ts | 2 +- src/components/structures/RightPanel.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playwright/e2e/right-panel/right-panel.spec.ts b/playwright/e2e/right-panel/right-panel.spec.ts index 16b26fdfd3..53b24e2754 100644 --- a/playwright/e2e/right-panel/right-panel.spec.ts +++ b/playwright/e2e/right-panel/right-panel.spec.ts @@ -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(); diff --git a/src/components/structures/RightPanel.tsx b/src/components/structures/RightPanel.tsx index 21e2a2ee71..96a0140a26 100644 --- a/src/components/structures/RightPanel.tsx +++ b/src/components/structures/RightPanel.tsx @@ -280,7 +280,7 @@ export default class RightPanel extends React.Component { } return ( -