Update Cypress test files under support/
directory - use Cypress Testing Library (#10619)
* Update support files - use Cypress Testing Library Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Fix openMessageComposerOptions() Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> --------- Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
This commit is contained in:
parent
56e4ae41f8
commit
4c0efc5e68
3 changed files with 10 additions and 10 deletions
|
@ -39,7 +39,7 @@ Cypress.Commands.add("getComposer", (isRightPanel?: boolean): Chainable<JQuery>
|
|||
|
||||
Cypress.Commands.add("openMessageComposerOptions", (isRightPanel?: boolean): Chainable<JQuery> => {
|
||||
cy.getComposer(isRightPanel).within(() => {
|
||||
cy.get('[aria-label="More options"]').click();
|
||||
cy.findByRole("button", { name: "More options" }).click();
|
||||
});
|
||||
return cy.get(".mx_MessageComposer_Menu");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue