megaphone icon Mattermost v7.0 is now available!
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', 'Move to...','Notification Preferences', 'Mute Channel', 'Add Members', 'Manage Members','Edit Channel Header', 'Edit Channel Purpose', 'Rename Channel', and 'Convert to Private Channel', 'Archive Channel', and 'Leave Channel',.
Open the Channel Menu 
// # Open 'Channel Menu'
cy.uiOpenChannelMenu();
Open the Channel Menu and click on specific item 
// # Open 'Advanced' section of '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();