2022-01-07 20:58:28 +02:00
|
|
|
// 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()
|
|
|
|
|
2022-02-02 10:38:57 +02:00
|
|
|
cy.contains(item).click()
|
|
|
|
|
|
|
|
cy.contains('Use this template').click({force: true}).wait(1000)
|
|
|
|
})
|
|
|
|
|
|
|
|
Cypress.Commands.add('uiCreateEmptyBoard', () => {
|
|
|
|
cy.log('Create new empty board')
|
|
|
|
|
2022-03-24 19:24:18 +02:00
|
|
|
cy.contains('+ Add board').should('be.visible').click().wait(500)
|
2022-02-02 10:38:57 +02:00
|
|
|
return cy.contains('Create empty board').click({force: true}).wait(1000)
|
2022-01-07 20:58:28 +02:00
|
|
|
})
|