Этот коммит содержится в:
Saturnino Abril
2023-06-14 07:56:23 +08:00
коммит произвёл GitHub
родитель bc66807acc
Коммит 16ad573979
13 изменённых файлов: 152 добавлений и 137 удалений

Просмотреть файл

@@ -24,6 +24,7 @@ declare namespace Cypress {
* @param {string} options.purpose - Channel's purpose
* @param {string} options.header - Channel's header
* @param {boolean} options.isNewSidebar) - the new sidebar has a different ui flow, set this setting to true to use that. Defaults to false.
* @param {string} options.createBoard) - Board template to create
*
* @example
* cy.uiCreateChannel({prefix: 'private-channel-', isPrivate: true, purpose: 'my private channel', header: 'my private header', isNewSidebar: false});

Просмотреть файл

@@ -9,7 +9,7 @@ Cypress.Commands.add('uiCreateChannel', ({
isPrivate = false,
purpose = '',
name = '',
createBoard = false,
createBoard = '',
}) => {
cy.uiBrowseOrCreateChannel('Create new channel').click();
@@ -30,8 +30,8 @@ Cypress.Commands.add('uiCreateChannel', ({
cy.findByTestId('add-board-to-channel-check').then((el) => {
if (el && !el.hasClass('checked')) {
el.click();
cy.get('#input_select-board-template').should('be.visible').click();
cy.get('.SelectTemplateMenu .MenuItem:contains(Roadmap) button').should('be.visible').click();
cy.get('.templates-selector').find('input').click({force: true});
cy.findByText(createBoard).scrollIntoView().should('be.visible').click({force: true});
}
});
}