Skip to content

Commit c22775c

Browse files
committed
test(e2e): update invite dialog
1 parent 6c35989 commit c22775c

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

playwright/e2e/invite/invite-dialog.spec.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,9 @@ test.describe("Invite dialog", function () {
5050
await expect(other.locator(".mx_InviteDialog_identityServer")).toBeVisible();
5151

5252
// Assert that the bot id is rendered properly
53-
await expect(
54-
other.locator(".mx_InviteDialog_tile_nameStack_userId").getByText(bot.credentials.userId),
55-
).toBeVisible();
53+
await expect(other.getByRole("option", { name: botName }).getByText(bot.credentials.userId)).toBeVisible();
5654

57-
await other.locator(".mx_InviteDialog_tile_nameStack_name").getByText(botName).click();
55+
await other.getByRole("option", { name: botName }).click();
5856

5957
await expect(
6058
other.locator(".mx_InviteDialog_userTile_pill .mx_InviteDialog_userTile_name").getByText(botName),
@@ -94,10 +92,8 @@ test.describe("Invite dialog", function () {
9492

9593
await other.getByTestId("invite-dialog-input").fill(bot.credentials.userId);
9694

97-
await expect(
98-
other.locator(".mx_InviteDialog_tile_nameStack").getByText(bot.credentials.userId),
99-
).toBeVisible();
100-
await other.locator(".mx_InviteDialog_tile_nameStack").getByText(botName).click();
95+
await expect(other.getByRole("option", { name: botName }).getByText(bot.credentials.userId)).toBeVisible();
96+
await other.getByRole("option", { name: botName }).click();
10197

10298
await expect(
10399
other.locator(".mx_InviteDialog_userTile_pill .mx_InviteDialog_userTile_name").getByText(botName),
-3.17 KB
Loading
-143 Bytes
Loading

0 commit comments

Comments
 (0)