Skip to content

Cypress e2e #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Nov 1, 2022
Prev Previous commit
Next Next commit
e2e tests
  • Loading branch information
previ committed Nov 1, 2022
commit 4831dcd8ce4619a8fea94ea2176411c0ea7c27c1
34 changes: 4 additions & 30 deletions cypress/e2e/700_settings.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,8 @@ describe('load homepage', () => {
cy.intercept('http://localhost:5000/wifi/v1/connection_status', (req) => {
req.reply({"wifi": false, "internet": true})
})
cy.intercept('http://localhost:5000/api/v1/system/status', (req) => {
req.reply({
"internet_status": true,
"temp": "30.0'C\n",
"uptime": " 01:00:00 up 00:10, 0 users, load average: 1.0, 1.0, 1.0"
})
})
cy.intercept('http://localhost:5000/api/v1/system/status', (req) => {
req.reply({
"coderbot_version": "branch-gitsha",
"kernel": "os version",
"release_commit": "gitsha",
"serial": "serial",
"update_status": "Idle"
})
cy.intercept('http://localhost:5000/wifi/v1/list_access_points', (req) => {
req.reply({"ssids": [{"ssid": "wifi-home", "conn_type": "WPA2", "strength": 99}]})
})
cy.visit('http://localhost:8080')
cy.get('.v-carousel').should('exist')
Expand All @@ -39,21 +26,8 @@ describe('load homepage', () => {
cy.intercept('http://localhost:5000/api/v1/system/info', (req) => {
req.reply({"wifi": false, "internet": true})
})
cy.intercept('http://localhost:5000/api/v1/system/status', (req) => {
req.reply({
"internet_status": true,
"temp": "30.0'C\n",
"uptime": " 01:00:00 up 00:10, 0 users, load average: 1.0, 1.0, 1.0"
})
})
cy.intercept('http://localhost:5000/api/v1/system/status', (req) => {
req.reply({
"coderbot_version": "branch-gitsha",
"kernel": "os version",
"release_commit": "gitsha",
"serial": "serial",
"update_status": "Idle"
})
cy.intercept('http://localhost:5000/wifi/v1/list_access_points', (req) => {
req.reply({"ssids": [{"ssid": "wifi-home", "conn_type": "WPA2", "strength": 99}]})
})
cy.visit('http://localhost:8080')
cy.get('.v-carousel').should('exist')
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy