MM-59065 - New channel menu using new menu system (#30093)
* New channel menu using new menu system * fix e2e-tests * remove extraneous separator * lint fix * fix test after merge * update to pass properties to first menu item * fix e2etest * refactor: Update channel header menu items to use const event handlers * refactor: Extract plugin item click handler in channel header menu * refactor: Improve error handling and button click handlers in mobile channel header plugins * lint fixes * updates for code reveiw * run i18n-extract * fix unit test * fix: Close channel dropdown menu by clicking channel header title * fix: Use keyboard escape to close channel dropdown menu in e2e tests * fix cypress test * fix: Resolve MUI Menu component fragment rendering issue * cleanup * remove unneccessary css * fixing testing issues --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8eadf849bb
Коммит
fd717cfa64
@@ -462,13 +462,15 @@ function getCurrentChannelId(): ChainableT<string> {
|
||||
Cypress.Commands.add('getCurrentChannelId', getCurrentChannelId);
|
||||
|
||||
function updateChannelHeader(text: string) {
|
||||
cy.get('#channelHeaderDropdownIcon').
|
||||
cy.get('#channelHeaderTitle').
|
||||
should('be.visible').
|
||||
click();
|
||||
cy.get('.Menu__content').
|
||||
should('be.visible').
|
||||
find('#channelEditHeader').
|
||||
click();
|
||||
cy.get('#channelHeaderDropdownMenu').
|
||||
should('be.visible');
|
||||
|
||||
// * Channel Settings menu option should be visible
|
||||
cy.findByText('Channel Settings').should('be.visible').trigger('mouseover');
|
||||
cy.findByText('Edit Channel Header').click();
|
||||
cy.get('#edit_textbox').
|
||||
clear().
|
||||
type(text).
|
||||
@@ -478,6 +480,24 @@ function updateChannelHeader(text: string) {
|
||||
|
||||
Cypress.Commands.add('updateChannelHeader', updateChannelHeader);
|
||||
|
||||
function updateDMGMChannelHeader(text: string) {
|
||||
cy.get('#channelHeaderTitle').
|
||||
should('be.visible').
|
||||
click();
|
||||
cy.get('#channelHeaderDropdownMenu').
|
||||
should('be.visible');
|
||||
|
||||
// * Channel Settings menu option should be visible
|
||||
cy.findByText('Edit Header').click();
|
||||
cy.get('#edit_textbox').
|
||||
clear().
|
||||
type(text).
|
||||
type('{enter}').
|
||||
wait(TIMEOUTS.HALF_SEC);
|
||||
}
|
||||
|
||||
Cypress.Commands.add('updateDMGMChannelHeader', updateDMGMChannelHeader);
|
||||
|
||||
function checkRunLDAPSync(): ChainableT<any> {
|
||||
return cy.apiGetLDAPSync().then((response) => {
|
||||
const jobs = response.body;
|
||||
@@ -787,6 +807,12 @@ declare global {
|
||||
*/
|
||||
updateChannelHeader(text: string): ChainableT<void>;
|
||||
|
||||
/**
|
||||
* Update DM or GM channel header
|
||||
* @param {String} text - Text to set the header to
|
||||
*/
|
||||
updateDMGMChannelHeader(text: string): ChainableT<void>;
|
||||
|
||||
/**
|
||||
* Navigate to system console-PluginManagement from profile settings
|
||||
*/
|
||||
|
||||
Ссылка в новой задаче
Block a user