fix(#3): Refactored a few configurations in cypress.

Partially fix #3.
This commit is contained in:
Simon Priet 2021-09-05 14:21:07 +02:00
parent 44450b918f
commit 39e48d11a5
3 changed files with 32 additions and 2 deletions

View File

@ -1 +1,6 @@
{}
{
"baseUrl": "http://localhost:3000",
"env" : {
"logoutUrl": "/ok.html"
}
}

View File

@ -0,0 +1,25 @@
[
{
"valid-admin": {
"email": "adrian@trusk.com",
"password": "adrian@trusk.com"
}
},
{
"invalid-admin": {
"email": "adrian@trusk.com",
"password": "adrian"
}
},
{
"unexisting-user": {
"email": "adrian.pothuaud@trusk.com",
"password": "badpassword"
}
},
{
"malformed-email": {
"email": "adrian-trusk"
}
}
]

View File

@ -4,7 +4,7 @@ describe('Should allow valid user and block the rest', () => {
beforeEach(function() {
// Changed theses should as required conditions to perform other tests
cy.visit('http://localhost:3000')
cy.visit('/')
// title
cy.title().should('eq', 'QA @ Trusk')
// elements