So I have the following scenario:
- Test hits Host1 as the first URL, this Host becomes the URL for the browser window running cypress itself.
- Test performs a series of steps to login via Okta and is eventually routed to a second Host, host 2 verifies credentials via Okta and allows user in.
- The test now needs to perform an operation where the microphone is accessed. The problem is that the page under test is effectively in an iframe running on Host2, and the parent frame is Host1 and it fails to access the microphone.
I need a process where I can either complete the login process after starting on Host2, even if nothing else than to just get a page that prompts me to login. This might be trickier to answer here due to the complex and unqiue nature of our test.
Option 2 would be to have the parent frame change to Host2, so that the inner and outer frames are on the same host. I believe this will work since I am able to see the login process somehow work, one time per system restart.
tl;dr;. Is there a way in Cypress to change the host of the outer frame.