So, I have this application that I am writing tests for with Cypress. The whole thing is a single-page-application where everything on the application is on the same page.
There are 2 actors to the application, the host and the participant. Whenever the host creates a meeting for the participant to join, an ID is generated from the host side for the participant to join. The meeting has to be active (aka not closed or navigated away from) in order for the participant to join.
Currently, I am trying to join the meeting from the participant side. Can you basically create a new tab and run the test through it with Cypress?
I have tried to run 2 separate test suites, but are then not able to retrieve the ID from test suite 2. I am currently using the following code for retrieving the meeting ID for the host siden:
let meetingId
cy.get('u[id=meeting-id]').should(($u) => {
meetingIdInHeader = Cypress.$($u).text();
console.log(meetingId)
return meetingId
})
I am able to get the meetingId
from the host side, but unable to do so for the participant side. Any suggestions for how to solve this?