From c2b1365d6156ac757b48e3b5b0138e05a4a71a94 Mon Sep 17 00:00:00 2001 From: Aleksander Nicacio da Silva Date: Fri, 8 Nov 2024 13:14:54 -0300 Subject: [PATCH] test: changed Send button locator to be more specific (#33916) --- apps/meteor/tests/e2e/page-objects/fragments/home-content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/meteor/tests/e2e/page-objects/fragments/home-content.ts b/apps/meteor/tests/e2e/page-objects/fragments/home-content.ts index fdef7bef7c58..2f7677fb8d5d 100644 --- a/apps/meteor/tests/e2e/page-objects/fragments/home-content.ts +++ b/apps/meteor/tests/e2e/page-objects/fragments/home-content.ts @@ -85,7 +85,7 @@ export class HomeContent { await this.joinRoomIfNeeded(); await this.page.waitForSelector('[name="msg"]:not([disabled])'); await this.page.locator('[name="msg"]').fill(text); - await this.page.locator('button[aria-label="Send"]').click(); + await this.page.getByRole('button', { name: 'Send', exact: true }).click(); } async dispatchSlashCommand(text: string): Promise {