Skip to content

Commit 81a8850

Browse files
committed
test(e2e): fix existing test
1 parent 2589697 commit 81a8850

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

apps/web/playwright/e2e/room/create-room.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ test.describe("Create Room", () => {
5858
await page.getByRole("button", { name: "Go" }).click();
5959

6060
await expect(page.getByText("Encryption enabled")).toBeVisible();
61-
await expect(page.getByText("Send your first message to")).toBeVisible();
61+
await expect(page.getByText("This is the beginning of your direct message history with")).toBeVisible();
6262

6363
const composer = page.getByRole("region", { name: "Message composer" });
6464
await expect(composer.getByRole("textbox", { name: "Send a message…" })).toBeVisible();

apps/web/playwright/e2e/spaces/spaces.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ test.describe("Spaces", () => {
344344
await page.getByRole("button", { name: "View", exact: true }).click();
345345

346346
// Assert we get shown the new room intro, and thus not the soft crash screen
347-
await expect(page.locator(".mx_NewRoomIntro")).toBeVisible();
347+
await expect(page.getByTestId("start-chat-view")).toBeVisible();
348348
});
349349

350350
test("should render spaces view", { tag: "@screenshot" }, async ({ page, app, user, axe }) => {

apps/web/playwright/e2e/timeline/timeline.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ test.describe("Timeline", () => {
12721272
// Scroll to the bottom to take a snapshot of the whole viewport
12731273
await app.timeline.scrollToBottom();
12741274
// Assert that both avatar in the introduction and the last message are visible at the same time
1275-
await expect(page.locator(".mx_NewRoomIntro .mx_BaseAvatar")).toBeVisible();
1275+
await expect(page.getByTestId("start-chat-view").locator(".mx_BaseAvatar")).toBeVisible();
12761276
const lastEventTileIrc = page.locator(".mx_EventTile_last[data-layout='irc']");
12771277
await expect(lastEventTileIrc.locator(".mx_MTextBody").first()).toBeVisible();
12781278
await expect(lastEventTileIrc.getByRole("status")).toHaveAccessibleName("Your message was sent"); // rendered at the bottom of EventTile
@@ -1285,7 +1285,7 @@ test.describe("Timeline", () => {
12851285
// Make sure the strings do not overflow on modern layout
12861286
await app.settings.setValue("layout", null, SettingLevel.DEVICE, Layout.Group);
12871287
await app.timeline.scrollToBottom(); // Scroll again in case
1288-
await expect(page.locator(".mx_NewRoomIntro .mx_BaseAvatar")).toBeVisible();
1288+
await expect(page.getByTestId("start-chat-view").locator(".mx_BaseAvatar")).toBeVisible();
12891289
const lastEventTileGroup = page.locator(".mx_EventTile_last[data-layout='group']");
12901290
await expect(lastEventTileGroup.locator(".mx_MTextBody").first()).toBeVisible();
12911291
await expect(lastEventTileGroup.getByRole("status")).toHaveAccessibleName("Your message was sent");
@@ -1297,7 +1297,7 @@ test.describe("Timeline", () => {
12971297
// Make sure the strings do not overflow on bubble layout
12981298
await app.settings.setValue("layout", null, SettingLevel.DEVICE, Layout.Bubble);
12991299
await app.timeline.scrollToBottom(); // Scroll again in case
1300-
await expect(page.locator(".mx_NewRoomIntro .mx_BaseAvatar")).toBeVisible();
1300+
await expect(page.getByTestId("start-chat-view").locator(".mx_BaseAvatar")).toBeVisible();
13011301
const lastEventTileBubble = page.locator(".mx_EventTile_last[data-layout='bubble']");
13021302
await expect(lastEventTileBubble.locator(".mx_MTextBody").first()).toBeVisible();
13031303
await expect(lastEventTileBubble.getByRole("status")).toHaveAccessibleName("Your message was sent");

0 commit comments

Comments
 (0)