* fix: e2e tests

* add more fix

* fixed_custom_categories

---------

Co-authored-by: Furqan Malik <furqan.malik@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Saturnino Abril
2023-04-05 06:50:49 +08:00
коммит произвёл GitHub
родитель 8afb6a6b39
Коммит f6cae9ab42
39 изменённых файлов: 107 добавлений и 111 удалений

Просмотреть файл

@@ -18,19 +18,19 @@ declare namespace Cypress {
interface Chainable {
/**
* Open the account settings modal
* Open the profile settings modal
* @param {string} section - such as `'General'`, `'Security'`, `'Notifications'`, `'Display'`, `'Sidebar'` and `'Advanced'`
* @return the "#accountSettingsModal"
*
* @example
* cy.uiOpenProfileModal().within(() => {
* cy.uiOpenProfileModal('Profile Settings').within(() => {
* // Do something here
* });
*/
uiOpenProfileModal(section?: string): Chainable<JQuery<HTMLElement>>;
uiOpenProfileModal(section: string): Chainable<JQuery<HTMLElement>>;
/**
* Close the account settings modal given that the modal itself is opened.
* Close the profile settings modal given that the modal itself is opened.
*
* @example
* cy.uiCloseAccountSettingsModal();
@@ -38,7 +38,7 @@ declare namespace Cypress {
uiCloseAccountSettingsModal(): Chainable;
/**
* Navigate to account settings and verify the user's first, last name
* Navigate to profile settings and verify the user's first, last name
* @param {String} firstname - expected user firstname
* @param {String} lastname - expected user lastname
*/

Просмотреть файл

@@ -19,7 +19,7 @@ Cypress.Commands.add('uiOpenProfileModal', (section = '') => {
Cypress.Commands.add('verifyAccountNameSettings', (firstname, lastname) => {
// # Go to Profile
cy.uiOpenProfileModal();
cy.uiOpenProfileModal('Profile Settings');
// * Check name value
cy.get('#nameDesc').should('have.text', `${firstname} ${lastname}`);

Просмотреть файл

@@ -11,7 +11,7 @@ Cypress.Commands.add('uiCreateChannel', ({
name = '',
createBoard = false,
}) => {
cy.uiBrowseOrCreateChannel('Create New Channel').click();
cy.uiBrowseOrCreateChannel('Create new channel').click();
cy.get('#new-channel-modal').should('be.visible');
if (isPrivate) {

Просмотреть файл

@@ -7,8 +7,8 @@ Cypress.Commands.add('uiCreateSidebarCategory', (categoryName = `category-${getR
// # Click the New Category/Channel Dropdown button
cy.uiGetLHSAddChannelButton().click();
// # Click the Create New Category dropdown item
cy.get('.AddChannelDropdown').should('be.visible').contains('.MenuItem', 'Create New Category').click();
// # Click the Create new category dropdown item
cy.get('.AddChannelDropdown').should('be.visible').contains('.MenuItem', 'Create new category').click();
cy.findByRole('dialog', {name: 'Rename Category'}).should('be.visible').within(() => {
// # Fill in the category name and click 'Create'

Просмотреть файл

@@ -213,7 +213,7 @@ declare global {
* @param {string} item - dropdown menu. If set, it will do click action.
*
* @example
* cy.uiBrowseOrCreateChannel('Browse Channels');
* cy.uiBrowseOrCreateChannel('Browse channels');
*/
uiBrowseOrCreateChannel(item: string): Chainable;

Просмотреть файл

@@ -788,7 +788,7 @@ declare global {
updateChannelHeader(text: string): ChainableT<void>;
/**
* Navigate to system console-PluginManagement from account settings
* Navigate to system console-PluginManagement from profile settings
*/
checkRunLDAPSync: typeof checkRunLDAPSync;