Mattermost Logo
We're hiring!
Edit on GitHub

Main Menu

image


cy.uiOpenMainMenu(item) 

Open the Main Menu by clicking the team header title or hamburger icon at the LHS.

  • item < string >
    • Possible values: 'Account Settings', 'Invite People', 'Team Settings', 'Manage Members', 'Create a Team', 'Join Another Team', 'Leave Team', 'Integrations', 'Plugin Marketplace', 'System Console', 'Help', 'Keyboard Shortcuts', 'Report a Problem', 'Download Apps', 'About Mattermost' and 'Logout'.
Open the Main Menu 
// # Open 'Main Menu'
cy.uiOpenMainMenu();
Open the Main Menu and click on specific item 
// # Open 'Integrations' section of 'Account Settings' modal
cy.uiOpenMainMenu('Integrations');

cy.uiCloseMainMenu() 

Close the Main Menu by clicking the team title or hamburger icon again on the LHS, given that the menu is already open.

cy.uiCloseMainMenu();

cy.uiGetMainMenu() 

Get the DOM elements of Main Menu.

cy.uiGetMainMenu();