1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-24 13:43:12 +02:00
focalboard/webapp/cypress/support/ui_commands.ts
Tim Lange e1d5e77e0e
Added better kanban edge scroll detection whilst dragging (#1913)
* 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>
2022-01-07 11:58:28 -07:00

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)
})