mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-12 09:04:14 +02:00
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>
23 lines
660 B
TypeScript
23 lines
660 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
/* eslint-disable cypress/no-unnecessary-waiting */
|
|
|
|
Cypress.Commands.add('uiCreateBoard', (item: string) => {
|
|
cy.log(`Create new board: ${item}`)
|
|
|
|
cy.contains('+ Add board').should('be.visible').click()
|
|
|
|
cy.contains(item).click()
|
|
|
|
cy.contains('Use this template').click({force: true}).wait(1000)
|
|
})
|
|
|
|
Cypress.Commands.add('uiCreateEmptyBoard', () => {
|
|
cy.log('Create new empty board')
|
|
|
|
cy.contains('+ Add board').should('be.visible').click()
|
|
|
|
return cy.contains('Create empty board').click({force: true}).wait(1000)
|
|
})
|