https://cypress.io logo
Hi everyone, I'm new to Cypress E2E test. Im tryin...
# e2e-testing
s
Hi everyone, I'm new to Cypress E2E test. Im trying to write a test for react WebApplication. Unfortunately I am stuck on the element when the application on mobile views e.g. viewPort 360 opens in full screen. The application is doing that when I interact with the first element (login page). After filling the login field spec then stops with the message "(uncaught exception) TypeError: Fullscreen request denied". Is there any way to work around this? On higher resolutions where full screen is not opened spec passes without problem. I was searching if there is a parameter in Cypress settings to disable the blocker for full screen , unfortunately I did not find anything. The same problem occurs on Chrome and Firefox. The spec code is very simple I use the class from POM
Copy code
> class Homepage_PO {
> Visit_Homepage(){
>     cy.visit(Cypress.env('integrax_homepage'),{timeout:60000})
> }
> Login(login, password){
>     cy.get('input[name="login"]').type(login)
>     cy.get('input[name="password"]').type(password)
>     cy.get('#loginBtn').click()
> }
> }
> export default Homepage_PO;
>
and the spec code >
Copy code
import Homepage_PO from "../../support/pageObjects/integraX/Homepage_PO";
> /// <reference types = 'cypress'/>
> 
> describe('Log in into IntegraX', () => {
>     const homepage_PO = new Homepage_PO()
>     beforeEach(() => {
>         homepage_PO.Visit_Homepage();
>     });
>     it.only('log in as Integra administrator', () => {
>         homepage_PO.Login(Cypress.env('integra_admin_login'), Cypress.env('integra_admin_password'));
>     });
> 
>     it('log in as Car Service', () => {
>     });
> });