focalboard/webapp/cypress/integration/manageGroups.ts

25 lines
816 B
TypeScript
Raw Normal View History

2021-11-24 12:43:04 +01:00
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
describe('Manage groups', () => {
beforeEach(() => {
cy.apiInitServer()
localStorage.setItem('welcomePageViewed', 'true')
})
it('MM-T4284 Adding a group', () => {
cy.visit('/')
cy.contains('+ Add board').click({force: true})
cy.contains('Empty board').click({force: true})
cy.contains('+ Add a group').click({force: true})
2021-11-24 13:24:14 +01:00
cy.get('.KanbanColumnHeader .Editable[value=\'New group\']').should('exist')
2021-11-24 12:43:04 +01:00
2021-11-24 13:24:14 +01:00
cy.get('.KanbanColumnHeader .Editable[value=\'New group\']').
2021-11-24 12:43:04 +01:00
clear().
type('Group 1').
blur()
2021-11-24 13:24:14 +01:00
cy.get('.KanbanColumnHeader .Editable[value=\'Group 1\']').should('exist')
2021-11-24 12:43:04 +01:00
})
})