mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-24 13:43:12 +02:00
c6976db9e5
* Update en.json Some minor casing changes and updates for 7.7 limits changes. * update cypress tests for text change Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
22 lines
672 B
TypeScript
22 lines
672 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().wait(500)
|
|
return cy.contains('Create an empty board').click({force: true}).wait(1000)
|
|
})
|