-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added an E2E test for checking current flow on changing to remote Edge works
- Loading branch information
1 parent
c4d27a0
commit de1d8e3
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
cypress/integration/ambianic-tests/remote-connection.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* This test will only work while the EC2 machines are running. | ||
*/ | ||
|
||
/// <reference types="cypress" /> | ||
|
||
context('RemoteConnections', () => { | ||
beforeEach(() => { | ||
cy.visit('http://18.219.76.94') | ||
}) | ||
|
||
it('Should be connected automatically', () => { | ||
|
||
cy.get('#btn-settings').click() | ||
|
||
cy.wait(6000) | ||
|
||
cy.get('#peerID').should('contain-text', '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('#sendRemotePeerID').click() | ||
|
||
cy.get('#peerID').should('contain-text', '8a9f5dbe-d8ee-4883-8ed6-8067ca2f1f39') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters