mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-24 13:43:12 +02:00
e1d5e77e0e
* added better kanban edge scroll detection whilst dragging * update jest snapshots * try to fix cypress on CI * replace force clicks on cypress test * make eslint happy * fix unrelated failed tests and reorganize Cypress commands * added test for drag direction from right to left * make eslint happy * cypress kanban drag test now checks other direction * fix test and update eslit for cypress Co-authored-by: Saturnino Abril <saturnino.abril@gmail.com> Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
13 lines
377 B
TypeScript
13 lines
377 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()
|
|
|
|
return cy.contains(item).click().wait(1000)
|
|
})
|