Update pills-click-in-app.spec.ts - use Cypress Testing Library (#10582)

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
This commit is contained in:
Suguru Hirahara 2023-04-16 22:50:57 +00:00 committed by GitHub
parent 439759a1da
commit 41c0b0881a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();