Anapher/Strive

View on GitHub
src/Tests/e2e/cypress/integration/features/webrtc.js

Summary

Maintainability
A
0 mins
Test Coverage
/// <reference types="Cypress" />

describe("WebRTC", () => {
  it("Activate screen and check connection status", () => {
    cy.createAndJoinOpenedConference("Vincent");
    cy.get("#media-controls-troubleshooting").click();
    cy.get("#troubleshooting-connection-badge").contains("new");

    cy.get("body").trigger("keydown", { key: "Escape" });
    cy.wait(200);
    cy.get("body").trigger("keyup", { key: "Escape" });

    cy.get("#media-controls-screen").click();

    cy.get("#media-controls-troubleshooting").click();
    cy.get("#troubleshooting-connection-badge")
      .contains("new")
      .should("not.exist");
  });
});