Mattermost Logo
We're hiring!
Edit on GitHub

Channel Menu

image


cy.uiOpenChannelMenu(item) 

Open the Channel Menu by clicking the channel header title or dropdown icon when viewing a channel.

  • item < string >
    • Possible values: 'View Info', 'Notification Preferences', 'Mute Channel', 'View Members', 'Edit Channel Header', 'Edit Channel Purpose' and 'Rename Channel'.
Open the Channel Menu 
// # Open 'Channel Menu'
cy.uiOpenChannelMenu();
Open the Channel Menu and click on specific item 
// # Open 'Advanced' section of 'Account Settings' modal
cy.uiOpenChannelMenu('View Info');

cy.uiCloseChannelMenu() 

Close the Channel Menu by clicking the channel header title or dropdown icon again at the center channel view, given that the menu is already open.

cy.uiCloseChannelMenu();

cy.uiGetChannelMenu() 

Get the DOM elements of Channel Menu.

cy.uiGetChannelMenu();