Skip to content

Commit

Permalink
fix: fixed tests so timeout was correct
Browse files Browse the repository at this point in the history
Fixed the tests so both ID and wait functionality
worked against the remote UI that is setup
  • Loading branch information
BKristenssonAlfsson committed May 26, 2020
1 parent de1d8e3 commit f616f66
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cypress/integration/ambianic-tests/remote-connection.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ context('RemoteConnections', () => {

cy.get('#btn-settings').click()

cy.wait(6000)
cy.wait(8000)

cy.get('#peerID').should('contain-text', '5568ec87-42d8-47b0-aeea-01a125db0623')
cy.get('#peerID').contains('5568ec87-42d8-47b0-aeea-01a125db0623')
})

it('Should switch to a remote Edge', () => {

cy.get('#btn-settings').click()

cy.wait(6000)

cy.get('input[name="remotePeerID"]').invoke('8a9f5dbe-d8ee-4883-8ed6-8067ca2f1f39')
cy.get('#remotePeerID').type('917d5f0a-6469-4d33-b5c2-efd858118b74')

cy.get('#sendRemotePeerID').click()
cy.get('#btn-sendRemotePeerID').click()

cy.get('#peerID').should('contain-text', '8a9f5dbe-d8ee-4883-8ed6-8067ca2f1f39')
cy.wait(8000)

cy.get('#peerID').contains('917d5f0a-6469-4d33-b5c2-efd858118b74')
})
})

0 comments on commit f616f66

Please sign in to comment.