Update index.js
This commit is contained in:
parent
c75b78847b
commit
26d0243e44
|
@ -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
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue