Skip to content

Commit 43f7467

Browse files
committed
test(e2e): update crypto test to use correct selector
1 parent 3887a58 commit 43f7467

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playwright/e2e/crypto/crypto.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const startDMWithBob = async (page: Page, bob: Bot) => {
2424
await page.getByRole("navigation", { name: "Room list" }).getByRole("button", { name: "Add" }).click();
2525
await page.getByRole("menuitem", { name: "Start chat" }).click();
2626
await page.getByTestId("invite-dialog-input").fill(bob.credentials.userId);
27-
await page.locator(".mx_InviteDialog_tile_nameStack_name").getByText("Bob").click();
27+
await page.getByRole("option", { name: bob.credentials.displayName }).click();
2828
await expect(
2929
page.locator(".mx_InviteDialog_userTile_pill .mx_InviteDialog_userTile_name").getByText("Bob"),
3030
).toBeVisible();

0 commit comments

Comments
 (0)