Skip to content

Commit

Permalink
test: update integration tests to match changes in backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej authored and barinali committed May 14, 2019
1 parent b850e38 commit 35bef50
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions cypress/integration/samples.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ describe('examples', () => {
cy.get('#output').should("contain", `handleWebSocketMessage | C->S : {"wsp_version":"1","method":"ping","params":{"apiKey":"${config.key}","sessid":null,"userKeys":{"command":"auth","userid":"username"}}}`);
cy.get('#output').should("contain", 'message":"pong"');
cy.get('#output').should("contain", '"method":"verto.clientReady"');
cy.get('#output').should("contain", '"id":"username"');
cy.get('#output').should("contain", 'Ready');
cy.wait(100).then(() => {
expect(stub.getCall(0)).to.be.calledWith('Logged in as username !');
expect(stub.getCall(0).args[0]).to.match(/Logged in with session id /);
});
})

Expand Down Expand Up @@ -93,7 +92,6 @@ describe('examples', () => {
cy.get('#output').should("contain", `handleWebSocketMessage | C->S : {"wsp_version":"1","method":"ping","params":{"apiKey":"${config.key}","sessid":null,"userKeys":{"command":"auth","userid":"username"}}}`);
cy.get('#output').should("contain", 'message":"pong"');
cy.get('#output').should("contain", '"method":"verto.clientReady"');
cy.get('#output').should("contain", '"id":"username"');
cy.get('#output').should("contain", 'Ready');
})

Expand Down Expand Up @@ -133,7 +131,6 @@ describe('examples', () => {
cy.get('#output').should("contain", 'Call | Received remote stream');
cy.get('#output').should("contain", 'Call | ICE State : connected');
cy.get('#output').should("contain", 'Call | ICE State : completed');
cy.wait(500);
cy.get('#output').should("contain", '"method":"event","params":{"pvtData":{"action":"conference-liveArray-join"');
cy.get('#output').should("contain", 'Received event of type channelPvtData');
cy.get('#output').should("contain", 'Event channel UUID');
Expand Down
2 changes: 1 addition & 1 deletion samples/apikey_check_and_login/console.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
userid: userid
},
onReady: function(sessionObj) {
alert("Logged in as " + sessionObj.id + " !");
alert("Logged in with session id " + sessionObj.id + " !");
},
onError: function(errorMessage){
alert("Got error : " + errorMessage);
Expand Down
2 changes: 1 addition & 1 deletion samples/apikey_check_and_login/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ <h3>Console output</h3>
userid: userNameObj.value
},
onReady: function(sessionObj) {
alert("Logged in as " + sessionObj.id + " !");
alert("Logged in with session id " + sessionObj.id + " !");
toggleInputs();
},
onError: function(errorMessage){
Expand Down

0 comments on commit 35bef50

Please sign in to comment.