diff --git a/cypress/e2e/widgets/stickers.spec.ts b/cypress/e2e/widgets/stickers.spec.ts index 44c5b250da..1a172055f9 100644 --- a/cypress/e2e/widgets/stickers.spec.ts +++ b/cypress/e2e/widgets/stickers.spec.ts @@ -67,8 +67,7 @@ const WIDGET_HTML = ` `; function openStickerPicker() { - cy.get(".mx_MessageComposer_buttonMenu").click(); - cy.get("#stickersButton").click(); + cy.openMessageComposerOptions().findByRole("menuitem", { name: "Sticker" }).click(); } function sendStickerFromPicker() {