whats going on cypress

pull/490/head
hunterlong 2020-04-11 17:43:41 -07:00
parent 8865e5ccf0
commit 8c3c6e326f
2 changed files with 7 additions and 1 deletions

View File

@ -2,6 +2,12 @@
context('Setup Process', () => { context('Setup Process', () => {
it('should be not be setup yet', () => {
cy.request(`/api`).then((response) => {
expect(response.body).to.have.property('setup', false)
})
})
it('should setup Statping with SQLite', () => { it('should setup Statping with SQLite', () => {
cy.visit('/setup', {failOnStatusCode: false}) cy.visit('/setup', {failOnStatusCode: false})
cy.get('#db_connection').select('sqlite') cy.get('#db_connection').select('sqlite')

View File

@ -11,7 +11,7 @@
"cypress:open": "cypress open", "cypress:open": "cypress open",
"cypress:test": "cypress run --browser chrome --record --key $CYPRESS_KEY", "cypress:test": "cypress run --browser chrome --record --key $CYPRESS_KEY",
"test": "start-server-and-test start http://localhost:8080/api cypress:test", "test": "start-server-and-test start http://localhost:8080/api cypress:test",
"start": "statping -port 8080 > /dev/null 2>&1" "start": "statping -port 8080"
}, },
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-free-solid": "^5.1.0-3", "@fortawesome/fontawesome-free-solid": "^5.1.0-3",