From 41c0b0881a50f31664bcc5b677ff70f6f299b19f Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Sun, 16 Apr 2023 22:50:57 +0000 Subject: [PATCH] Update pills-click-in-app.spec.ts - use Cypress Testing Library (#10582) Signed-off-by: Suguru Hirahara --- cypress/e2e/regression-tests/pills-click-in-app.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/regression-tests/pills-click-in-app.spec.ts b/cypress/e2e/regression-tests/pills-click-in-app.spec.ts index 8540736f3e..f8e607a4f2 100644 --- a/cypress/e2e/regression-tests/pills-click-in-app.spec.ts +++ b/cypress/e2e/regression-tests/pills-click-in-app.spec.ts @@ -50,11 +50,11 @@ describe("Pills", () => { cy.url().should("contain", `/#/room/${messageRoomId}`); // send a message using the built-in room mention functionality (autocomplete) - cy.get(".mx_SendMessageComposer .mx_BasicMessageComposer_input").type( + cy.findByRole("textbox", { name: "Send a messageā€¦" }).type( `Hello world! Join here: #${targetLocalpart.substring(0, 3)}`, ); cy.get(".mx_Autocomplete_Completion_title").click(); - cy.get(".mx_MessageComposer_sendMessage").click(); + cy.findByRole("button", { name: "Send message" }).click(); // find the pill in the timeline and click it cy.get(".mx_EventTile_body .mx_Pill").click();