2
0

Add Dashboard

This commit is contained in:
Baptiste Arnaud
2021-12-06 15:48:50 +01:00
parent 5e14a94dea
commit 54a641b819
47 changed files with 2002 additions and 168 deletions

View File

@@ -13,20 +13,33 @@
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************
// Import commands.js using ES2015 syntax:
/// <reference types="cypress" />
declare global {
namespace Cypress {
interface Chainable {
/**
* Log out using the NextAuth API.
* @example cy.logOutByApi()
*/
logOutByApi(): Chainable<Response<any>>
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: