Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Update pills-click-in-app.spec.ts - use Cypress Testing Library (#10582)
Browse files Browse the repository at this point in the history
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
  • Loading branch information
luixxiul authored Apr 16, 2023
1 parent 439759a commit 41c0b08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/regression-tests/pills-click-in-app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 41c0b08

Please sign in to comment.