Due to certain restrictions i cant copy paste my code but describing my situation below:
Working one URL
When clicking certain button, navigating to another URL
(a. Hence when navigating to another URL, cypress runner getting full screen), i tried to handle viewport, uncaught exception, cy.window, cy.origin and not able to handle full screen.
b. If I take to another it block, and tried with cy.visit then i am able to handle cypress runner full screen issue, then it is not showing the previous page any information [because i am clicking certain button to navigate that page and all the related information’s of previous page should carry]
Question:
How can i handle the Cypress Full screen issue?
If i can handle the screen, how i can handle the previous page information’s ?
I tried:
Cypress.on('uncaught:exception', (err, runnable) => {
// returning false here prevents Cypress from
// failing the test
return false
})
cy.window()
cy.viewport(1350, 1050)
Cypress.on('window:before:load', (win) => {
Object.defineProperty(win, 'self', {
get: () => {
return window.top
}
})
})