Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 6bd2075

Browse files
committed
Update compound and use subtleBackground
Signed-off-by: Michael Telatynski <[email protected]>
1 parent 7cc5fff commit 6bd2075

File tree

15 files changed

+33
-17
lines changed

15 files changed

+33
-17
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"@sentry/browser": "^8.0.0",
8282
"@testing-library/react-hooks": "^8.0.1",
8383
"@vector-im/compound-design-tokens": "^1.2.0",
84-
"@vector-im/compound-web": "^5.2.3",
84+
"@vector-im/compound-web": "^5.4.0",
8585
"@zxcvbn-ts/core": "^3.0.4",
8686
"@zxcvbn-ts/language-common": "^3.0.4",
8787
"@zxcvbn-ts/language-en": "^3.0.2",

playwright/e2e/crypto/crypto.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ test.describe("Cryptography", function () {
227227
await verify(page, bob);
228228

229229
// Assert that verified icon is rendered
230-
await page.getByRole("button", { name: "Room members" }).click();
230+
await page.getByTestId("base-card-back-button").click();
231231
await page.locator(".mx_RightPanelTabs").getByText("Info").click();
232232
await expect(page.locator('.mx_RoomSummaryCard_badges [data-kind="success"]')).toContainText("Encrypted");
233233

playwright/e2e/crypto/event-shields.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ test.describe("Cryptography", function () {
132132
// wait for the logout to propagate. Workaround for https://github.com/vector-im/element-web/issues/26263 by repeatedly closing and reopening Bob's user info.
133133
async function awaitOneDevice(iterations = 1) {
134134
const rightPanel = page.locator(".mx_RightPanel");
135-
await rightPanel.getByRole("button", { name: "Room members" }).click();
135+
await rightPanel.getByTestId("base-card-back-button").click();
136136
await rightPanel.getByText("Bob").click();
137137
const sessionCountText = await rightPanel
138138
.locator(".mx_UserInfo_devices")

playwright/e2e/read-receipts/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ class Helpers {
538538
const threadPanel = this.page.locator(".mx_ThreadPanel");
539539
await expect(threadPanel).toBeVisible();
540540
await threadPanel.evaluate(($panel) => {
541-
const $button = $panel.querySelector<HTMLElement>('.mx_BaseCard_back[aria-label="Threads"]');
541+
const $button = $panel.querySelector<HTMLElement>('[data-testid="base-card-back-button"]');
542542
// If the Threads back button is present then click it - the
543543
// threads button can open either threads list or thread panel
544544
if ($button) {

playwright/e2e/right-panel/right-panel.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ test.describe("RightPanel", () => {
106106
await expect(page.locator(".mx_FilePanel")).toBeVisible();
107107
await expect(page.locator(".mx_FilePanel_empty")).toBeVisible();
108108

109-
await page.getByRole("button", { name: "Room information" }).click();
109+
await page.getByTestId("base-card-back-button").click();
110110
await checkRoomSummaryCard(page, ROOM_NAME);
111111
});
112112

@@ -120,7 +120,7 @@ test.describe("RightPanel", () => {
120120
await expect(page.locator(".mx_UserInfo")).toBeVisible();
121121
await expect(page.locator(".mx_UserInfo_profile").getByText(NAME)).toBeVisible();
122122

123-
await page.getByRole("button", { name: "Room members" }).click();
123+
await page.getByTestId("base-card-back-button").click();
124124
await expect(page.locator(".mx_MemberList")).toBeVisible();
125125

126126
await page.locator(".mx_RightPanelTabs").getByText("Info").click();
@@ -145,7 +145,7 @@ test.describe("RightPanel", () => {
145145
await expect(page.locator(".mx_UserInfo_profile").getByText(NAME)).toBeVisible();
146146
await expect(page.locator(".mx_SpaceScopeHeader").getByText(SPACE_NAME)).toBeVisible();
147147

148-
await page.getByRole("button", { name: "Back" }).click();
148+
await page.getByTestId("base-card-back-button").click();
149149
await expect(page.locator(".mx_MemberList")).toBeVisible();
150150
});
151151
});

playwright/e2e/threads/threads.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ test.describe("Threads", () => {
433433
await textbox.press("Enter");
434434
await expect(locator.locator(".mx_EventTile_last").getByText("Hello Mr. User")).toBeAttached();
435435
// Close thread
436-
await locator.getByRole("button", { name: "Close" }).click();
436+
await locator.getByTestId("base-card-close-button").click();
437437

438438
// Open existing thread
439439
locator = page
@@ -486,7 +486,7 @@ test.describe("Threads", () => {
486486
await textbox.press("Enter");
487487
await expect(threadPanel.locator(".mx_EventTile_last").getByText(threadMessage)).toBeVisible();
488488
// Close thread
489-
await threadPanel.getByRole("button", { name: "Close" }).click();
489+
await threadPanel.getByTestId("base-card-close-button").click();
490490
};
491491

492492
await sendMessage("Hello Mr. Bot");
-2.22 KB
Loading
-2.24 KB
Loading
-1020 Bytes
Loading
-1.07 KB
Loading

0 commit comments

Comments
 (0)