mirror of https://github.com/statping/statping
whats going on cypress
parent
8865e5ccf0
commit
8c3c6e326f
|
@ -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')
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue