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>
31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
declare namespace Cypress {
|
|
type LoginData = {
|
|
username: string
|
|
password: string
|
|
}
|
|
type UserData = LoginData & {
|
|
email: string
|
|
}
|
|
interface Chainable {
|
|
apiRegisterUser: (data: UserData, token?: string, failOnError?: boolean) => Chainable
|
|
apiLoginUser: (data: LoginData) => Chainable
|
|
apiGetMe: () => Chainable<string>
|
|
apiChangePassword: (userId: string, oldPassword: string, newPassword: string) => Chainable
|
|
apiInitServer: () => Chainable
|
|
apiDeleteBlock: (id: string) => Chainable
|
|
apiResetBoards: () => Chainable
|
|
uiCreateNewBoard: (title?: string) => Chainable
|
|
uiAddNewGroup: (name?: string) => Chainable
|
|
|
|
/**
|
|
* Create a board on a given menu item.
|
|
*
|
|
* @param {string} item - one of the template menu options, ex. 'Empty board'
|
|
*/
|
|
uiCreateBoard: (item: string) => Chainable
|
|
}
|
|
}
|