Update index.js

This commit is contained in:
MatteoGheza 2021-03-01 23:39:55 +01:00 committed by GitHub
parent c75b78847b
commit 26d0243e44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
Cypress.config('defaultCommandTimeout', 10000);
//TODO: login remember me and better language support
Cypress.Commands.add("login", (username="admin", password="correcthorsebatterystaple") => {
cy.setCookie("forceLanguage", "en");
@ -25,4 +27,4 @@ Cypress.Commands.add("getApiKey", (username="admin", password="correcthorsebatte
console.log(response.body)
return response.body.apiKey
})
})
})