2
0
Files
bot/apps/builder/cypress/support/index.ts
Baptiste Arnaud 54a641b819 Add Dashboard
2021-12-06 15:58:45 +01:00

47 lines
1.2 KiB
TypeScript

/* eslint-disable @typescript-eslint/no-namespace */
// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************
/// <reference types="cypress" />
declare global {
namespace Cypress {
interface Chainable {
signOut(): Chainable<any>
signIn(email: string): Chainable<any>
mouseMoveBy(
x: number,
y: number,
options?: { delay: number }
): Chainable<
[
Element,
{
initialRect: ClientRect
finalRect: ClientRect
delta: { x: number; y: number }
}
]
>
}
}
}
// Import commands.js using ES2015 syntax:
import '@testing-library/cypress/add-commands'
import './commands'
// Alternatively you can use CommonJS syntax:
// require('./commands')