cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
46.84k stars 3.17k forks source link

Cypress loads blank page when run using github action #30360

Open wulanLastia opened 1 week ago

wulanLastia commented 1 week ago

Current behavior

I am trying to run Cypress in Github Actions. It is a Vue app. The remote url is https://devsidebar.digitalservice.id/ and i have following test failed.

 it('Login', () => {
        cy.visit('https://devsidebar.digitalservice.id/', { failOnStatusCode: false })
 })

I have raise the time in

cypress.config.js

module.exports = defineConfig({
  pageLoadTimeout: 120000,

The error occurred after I updated the cypress-qase-reporter package from cypress-qase-reporter 1.4.2-alpha.2 to 1.4.3

image

NOTED : If we run test using Cypress UI and Headless running normally

Desired behavior

I expect the tests to pass as they do when I run them against the app when it's on localhost. I don't understand why the page initially loads then goes blank on cypress browser

Test code to reproduce

 it('Login', () => {
        cy.visit('https://devsidebar.digitalservice.id/', { failOnStatusCode: false })
 })

Cypress Version

13.13.1

Node version

20.11.1

Operating System

Windows 11

Debug Logs

No response

Other

No response

jennifer-shehane commented 6 days ago

If the error happened after updating cypress-qase-reporter, I'd suggest raising an issue with them.