fix(#3): ✅ Refactored a few configurations in cypress.
Partially fix #3.
This commit is contained in:
parent
44450b918f
commit
39e48d11a5
@ -1 +1,6 @@
|
|||||||
{}
|
{
|
||||||
|
"baseUrl": "http://localhost:3000",
|
||||||
|
"env" : {
|
||||||
|
"logoutUrl": "/ok.html"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
25
cypress/fixtures/userSet.json
Normal file
25
cypress/fixtures/userSet.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
@ -4,7 +4,7 @@ describe('Should allow valid user and block the rest', () => {
|
|||||||
|
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
// Changed theses should as required conditions to perform other tests
|
// Changed theses should as required conditions to perform other tests
|
||||||
cy.visit('http://localhost:3000')
|
cy.visit('/')
|
||||||
// title
|
// title
|
||||||
cy.title().should('eq', 'QA @ Trusk')
|
cy.title().should('eq', 'QA @ Trusk')
|
||||||
// elements
|
// elements
|
||||||
|
Loading…
x
Reference in New Issue
Block a user