mirror of
https://github.com/hanzoai/team.git
synced 2026-11-01 07:55:31 +00:00
* replace inside of comp/withtooltip * remove overlay trigger eslint rl * update location of prev migrated new tooltips * copy button * shared_channel_indicator, shared_user_indicator.tsx, size_aware_image * actions_menu, old_admin_settings, schema_admin_settings, admin_settings * billing_summary, brand_image_setting, edit_section_edit_table_row, elapsed_duration_cell * permissions_scheme_summary,secure_connections/controls,system_users_column_toggler_menu,system_users_export,group/group_users/users_to_remove_groups * team_profile,user_grid_role_dropdown,priority_labels,toggle_formatting_bar,use_emoji_picker,formatting_icon * show_formatting,alert_banner others * more * snap fix * add disabled prop to menu * test fix for avatar feat: Add id to WithTooltip in Avatars component to fix test failures * combine refs in withtooltip * channel header title favorite test fix * priority label comp changes * types check for children * Update avatar.tsx * e2e fixes * fix E2E tests * Remove memo from WithTooltip I found that the web app leaks a fair bit less memory when this is removed. See https://community.mattermost.com/core/pl/gwyyoww9gtbg8fddoic9meq84y for more information * e2e lint fixes * e2e fixes * Fix test style issue --------- Co-authored-by: yasserfaraazkhan <[email protected]> Co-authored-by: Harrison Healey <[email protected]> Co-authored-by: Mattermost Build <[email protected]>
70 lines
2.2 KiB
JavaScript
70 lines
2.2 KiB
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
// ***************************************************************
|
|
// - [#] indicates a test step (e.g. # Go to a page)
|
|
// - [*] indicates an assertion (e.g. * Check the title)
|
|
// ***************************************************************
|
|
|
|
// Stage: @prod
|
|
// Group: @playbooks
|
|
|
|
describe('channels > App Bar', {testIsolation: true}, () => {
|
|
let testTeam;
|
|
let testUser;
|
|
|
|
before(() => {
|
|
cy.apiInitSetup().then(({team, user}) => {
|
|
testTeam = team;
|
|
testUser = user;
|
|
});
|
|
});
|
|
|
|
beforeEach(() => {
|
|
cy.apiAdminLogin();
|
|
});
|
|
|
|
describe('App Bar disabled', () => {
|
|
it('should not show the Playbook App Bar icon', () => {
|
|
cy.apiUpdateConfig({ExperimentalSettings: {DisableAppBar: true}});
|
|
|
|
// # Login as testUser
|
|
cy.apiLogin(testUser);
|
|
|
|
// # Navigate directly to a non-playbook run channel
|
|
cy.visit(`/${testTeam.name}/channels/town-square`);
|
|
|
|
// * Verify App Bar icon is not showing
|
|
cy.get('.app-bar').should('not.exist');
|
|
});
|
|
});
|
|
|
|
describe('App Bar enabled', () => {
|
|
beforeEach(() => {
|
|
cy.apiUpdateConfig({ExperimentalSettings: {DisableAppBar: false}});
|
|
|
|
// # Login as testUser
|
|
cy.apiLogin(testUser);
|
|
});
|
|
|
|
it('should show the Playbook App Bar icon', () => {
|
|
// # Navigate directly to a non-playbook run channel
|
|
cy.visit(`/${testTeam.name}/channels/town-square`);
|
|
|
|
// * Verify App Bar icon is showing
|
|
cy.getPlaybooksAppBarIcon().should('exist');
|
|
});
|
|
|
|
it('should show "Playbooks" tooltip for Playbook App Bar icon', () => {
|
|
// # Navigate directly to a non-playbook run channel
|
|
cy.visit(`/${testTeam.name}/channels/town-square`);
|
|
|
|
// # Hover over the channel header icon
|
|
cy.getPlaybooksAppBarIcon().trigger('mouseenter');
|
|
|
|
// * Verify tooltip text
|
|
cy.findByRole('tooltip').should('be.visible').and('contain', 'Playbooks');
|
|
});
|
|
});
|
|
});
|