2022-01-07 19:58:28 +01: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 09:38:57 +01: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 18:24:18 +01:00
|
|
|
cy.contains('+ Add board').should('be.visible').click().wait(500)
|
2022-02-02 09:38:57 +01:00
|
|
|
return cy.contains('Create empty board').click({force: true}).wait(1000)
|
2022-01-07 19:58:28 +01:00
|
|
|
})
|