Skip to content

Commit 92149d4

Browse files
committed
readd flaky test
1 parent 4b0ddfe commit 92149d4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cypress/e2e/700_settings.cy.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
describe('load homepage', () => {
32
it('checks tabs', () => {
43
cy.intercept('http://localhost:5000/wifi/v1/connection_status', (req) => {
@@ -58,20 +57,22 @@ describe('load homepage', () => {
5857
cy.get('#save').click()
5958
cy.get('.v-snackbar__content').should('exist')
6059
})
61-
/* disabled because flaky
60+
6261
it('modifies most settings, valid values, save', () => {
6362
cy.intercept('http://localhost:5000/wifi/v1/connection_status', (req) => {
6463
req.reply({"wifi": false, "internet": true})
6564
})
6665
cy.intercept('http://localhost:5000/wifi/v1/list_access_points', (req) => {
6766
req.reply({"ssids": [{"ssid": "wifi-home", "conn_type": "WPA2", "strength": 99}]})
6867
})
69-
cy.visit('http://localhost:8080')
68+
cy.visit('localhost:8080')
69+
cy.wait(1000)
7070
cy.get('.v-carousel').should('exist')
7171
cy.get('button.v-app-bar-nav-icon').should('exist').click()
7272
cy.get('a.v-list-item[href*="/settings"]').click()
7373
cy.get('#app').click()
7474
cy.get('button#1').click()
75+
cy.wait(1000)
7576
cy.get('input#settings_movement_control_forward_speed').type('{selectAll}90')
7677
cy.get('input#settings_movement_control_forward_elapse').type('{selectAll}1')
7778
cy.get('input#settings_movement_control_turn_speed').type('{selectAll}90')
@@ -97,7 +98,7 @@ describe('load homepage', () => {
9798
cy.get('input#settings_movement_program_turn_speed').should('have.value', '90')
9899
cy.get('input#settings_movement_program_turn_elapse').should('have.value', '1')
99100
})
100-
*/
101+
101102
it('modifies most settings, invalid values, verify error message', () => {
102103
cy.intercept('http://localhost:5000/wifi/v1/connection_status', (req) => {
103104
req.reply({"wifi": false, "internet": true})

0 commit comments

Comments
 (0)