fix: known failed E2E tests (#23708)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
bc66807acc
Коммит
16ad573979
1
e2e-tests/cypress/tests/support/ui/channel.d.ts
поставляемый
1
e2e-tests/cypress/tests/support/ui/channel.d.ts
поставляемый
@@ -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});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user