// 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 apiChangePassword: (userId: string, oldPassword: string, newPassword: string) => Chainable apiInitServer: () => Chainable apiDeleteBlock: (id: string) => Chainable apiResetBoards: () => Chainable uiCreateNewBoard: (title?: string) => Chainable uiAddNewGroup: (name?: string) => Chainable } }