dcf7600ca4
* Addinig initial version of a working template selector * Some improvements * Small improvements in the code * More polishing * Code reorganization * Fixing tests * Fixing linter errors * Allowing to edit/delete templates * Removing no longer needed code reducing race conditions * Fixing some tests * Adding some unit tests * Adding more tests * Splitting a bit more the board template selector for simplification * Moving the delete dialog to the board template selector item * Fixing some tests * Fixing tests * Exctracting i18n strings * Trying to fix part of the cypress tests * Fixing cypress tests * Updating template selector UI * Updating UI * Updating padding * Fixing css linter errors * Fixing css error introduced in the previous commit * Updating snapshots and fixing tests * Fixing cypress tests again * Adressing review comments * Fixing tests Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
54 lines
1.9 KiB
TypeScript
54 lines
1.9 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
describe('Manage groups', () => {
|
|
beforeEach(() => {
|
|
cy.apiInitServer()
|
|
cy.apiResetBoards()
|
|
localStorage.setItem('welcomePageViewed', 'true')
|
|
})
|
|
|
|
it('MM-T4284 Adding a group', () => {
|
|
// Visit a page and create new empty board
|
|
cy.visit('/')
|
|
cy.uiCreateEmptyBoard()
|
|
|
|
cy.contains('+ Add a group').click({force: true})
|
|
cy.get('.KanbanColumnHeader .Editable[value=\'New group\']').should('exist')
|
|
|
|
cy.get('.KanbanColumnHeader .Editable[value=\'New group\']').
|
|
clear().
|
|
type('Group 1').
|
|
blur()
|
|
cy.get('.KanbanColumnHeader .Editable[value=\'Group 1\']').should('exist')
|
|
})
|
|
|
|
it('MM-T4285 Adding group color', () => {
|
|
// Visit a page and create new empty board
|
|
cy.visit('/')
|
|
cy.uiCreateEmptyBoard()
|
|
|
|
cy.contains('+ Add a group').click({force: true})
|
|
cy.get('.KanbanColumnHeader .Editable[value=\'New group\']').should('exist')
|
|
|
|
cy.get('.KanbanColumnHeader').last().within(() => {
|
|
cy.get('.icon-dots-horizontal').click({force: true})
|
|
cy.get('.menu-options').should('exist').within(() => {
|
|
cy.contains('Hide').should('exist')
|
|
cy.contains('Delete').should('exist')
|
|
|
|
// Some colours
|
|
cy.contains('Brown').should('exist')
|
|
cy.contains('Gray').should('exist')
|
|
cy.contains('Orange').should('exist')
|
|
|
|
// Click on green
|
|
cy.contains('Green').should('be.visible').click().wait(1000) // eslint-disable-line cypress/no-unnecessary-waiting
|
|
})
|
|
})
|
|
|
|
cy.get('.KanbanColumnHeader').last().within(() => {
|
|
cy.get('.Label.propColorGreen').should('exist')
|
|
})
|
|
})
|
|
})
|