2
0

chore(inputs): Add Button targets e2e tests

This commit is contained in:
Baptiste Arnaud
2022-01-12 09:57:00 +01:00
parent 659f50eb06
commit 13f72f5ff7
10 changed files with 168 additions and 13 deletions

View File

@ -12,6 +12,12 @@ Cypress.Commands.add('signIn', (email: string) => {
})
})
Cypress.Commands.add('loadTypebotFixtureInDatabase', (path: string) => {
return cy.fixture(path).then((typebot) => {
cy.task('loadRawTypebotInDatabase', typebot)
})
})
Cypress.Commands.add(
'mouseMoveBy',
{

View File

@ -20,6 +20,7 @@ declare global {
interface Chainable {
signOut(): Chainable<any>
signIn(email: string): Chainable<any>
loadTypebotFixtureInDatabase(path: string): Chainable<any>
mouseMoveBy(
x: number,
y: number,