* 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 удалений

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

@@ -143,7 +143,7 @@ function createCategoryFromSidebarMenu() {
cy.uiGetLHSAddChannelButton().click();
// # Click on create category link
cy.findByText('Create New Category').should('be.visible').click();
cy.findByText('Create new category').should('be.visible').click();
// # Verify that Create Category modal has shown up.
// # Wait for a while until the modal has fully loaded, especially during first-time access.

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

@@ -26,7 +26,7 @@ describe('Category sorting', () => {
cy.uiGetLHSAddChannelButton().click();
// # Click on create category link
cy.findByText('Create New Category').should('be.visible').click();
cy.findByText('Create new category').should('be.visible').click();
// # Add a name 26 characters in length e.g `abcdefghijklmnopqrstuvwxyz`
cy.get('#editCategoryModal').should('be.visible').wait(TIMEOUTS.HALF_SEC).within(() => {

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

@@ -23,14 +23,14 @@ describe('Channel sidebar', () => {
});
});
it('MM-T3161_1 should create a new category from sidebar menu -- KNOWN ISSUE: MM-42576', () => {
it('MM-T3161_1 should create a new category from sidebar menu', () => {
const categoryName = createCategoryFromSidebarMenu();
// * Check if the category exists
cy.findByLabelText(categoryName).should('be.visible');
});
it('MM-T3161_2 should create a new category from category menu -- KNOWN ISSUE: MM-42576', () => {
it('MM-T3161_2 should create a new category from category menu', () => {
const categoryName = createCategoryFromSidebarMenu();
// # Create new category from category menu
@@ -43,7 +43,7 @@ describe('Channel sidebar', () => {
cy.findByLabelText(newCategoryName).should('be.visible');
});
it('MM-T3161_3 move an existing channel to a new category -- KNOWN ISSUE: MM-42576', () => {
it('MM-T3161_3 move an existing channel to a new category', () => {
const newCategoryName = `category-${getRandomId()}`;
// # Move to a new category
@@ -53,7 +53,7 @@ describe('Channel sidebar', () => {
cy.findByLabelText(newCategoryName).should('be.visible');
});
it('MM-T3163 Rename a category -- KNOWN ISSUE: MM-42576', () => {
it('MM-T3163 Rename a category', () => {
const categoryName = createCategoryFromSidebarMenu();
// # Rename category from category menu
@@ -71,7 +71,7 @@ describe('Channel sidebar', () => {
cy.findByLabelText(renameCategory).should('be.visible');
});
it('MM-T3165 Delete a category -- KNOWN ISSUE: MM-42576', () => {
it('MM-T3165 Delete a category', () => {
const categoryName = createCategoryFromSidebarMenu();
// # Delete category from category menu
@@ -93,7 +93,7 @@ function createCategoryFromSidebarMenu() {
cy.uiGetLHSAddChannelButton().click();
// # Click on create category link
cy.findByText('Create New Category').should('be.visible').click();
cy.findByText('Create new category').should('be.visible').click();
// # Verify that Create Category modal has shown up.
// # Wait for a while until the modal has fully loaded, especially during first-time access.

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

@@ -64,8 +64,8 @@ describe('Channel sidebar', () => {
// # Click the New Channel Dropdown button
cy.uiGetLHSAddChannelButton().should('be.visible').click();
// # Click the Browse Channels dropdown item
cy.get('.AddChannelDropdown .MenuItem:contains(Browse Channels) button').should('be.visible').click();
// # Click the Browse channels dropdown item
cy.get('.AddChannelDropdown .MenuItem:contains(Browse channels) button').should('be.visible').click();
// * Verify that the more channels modal is visible
cy.get('.more-modal').should('be.visible');