Compare commits

...

2 Commits

Author SHA1 Message Date
Simon Priet
39e48d11a5 fix(#3): Refactored a few configurations in cypress.
Partially fix #3.
2021-09-05 14:21:07 +02:00
Simon Priet
44450b918f refactor(#4): Commented a visit command to set a testcase up.
I am wondering if we can test that directly without connecting first. I will defeat the purpose of user area though.

None.
2021-09-05 14:02:36 +02:00
3 changed files with 33 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
@ -63,6 +63,7 @@ describe('Should allow valid user and block the rest', () => {
});
it.skip('Allow to disconnect a connected user', function() {
// cy.visit("ok.html")
// get back
cy.contains('Retour').click()
cy.title().should('eq', 'QA @ Trusk')