cypress icon indicating copy to clipboard operation
cypress copied to clipboard

Gitlab CI Job does not end properly when `cypress run` contains a specific page that was visited

Open tomoyachen opened this issue 2 years ago • 0 comments
trafficstars

Current behavior

When running the cypress run command on Gitlab CI, there is a probability that after a specific page is visited in a test case, the CI job does not end after running all the cases.

I tested different pages of my test subjects individually, and a specific page causes this problem, while all other pages end normally.

The page with the problem has a Service Worker, so I tried to block the Service worker but it still didn't work.

*Tested Cypress v10.11.0 v11.2.0

Desired behavior

No response

Test code to reproduce

I think it only has to do with the pages visited

cypress.config.js

{
  "baseUrl": "https://leetcode.cn"
}

health-check.cy.js

describe('Health Check v2', () => {

  it('Health Check - Home Page', () => {
    cy.visit('/')
  })
})

Gitlab CI Job Screenshot image

Cypress Version

10.11.0

Node version

v16.18.0

Operating System

Using Docker executor with image cypress/browsers:node16.18.0-chrome107-ff106-edge

Debug Logs

No response

Other

No response

tomoyachen avatar Nov 23 '22 07:11 tomoyachen