Closed ps37 closed 1 year ago
I'm not sure this is the issue you're running into - it might be unrelated - but aliases are reset before each test.
Note: all aliases are reset before each test. A common user mistake is to create aliases using the before hook. Such aliases work in the first test only!
You might be well served with cy.session()
, which is designed to help out with exactly the workflow you've implemented.
Again not sure either of these directly address the bug report, but they'd be things to try out at least.
Going to close due to inactivity. Please post a comment if this is still an issue and we can re-open it.
We are encountering the same issue when running cypress in our CI pipeline
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 3 │
│ Passing: 3 │
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 0 │
│ Video: false │
│ Duration: 0 seconds │
│ Spec Ran: navigation/tab/HorizontalTab.cy.tsx │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
[2013:0510/082333.936818:ERROR:ssl_client_socket_impl.cc(978)] handshake failed; returned -1, SSL error code 1, net_error -101
[2013:0510/082333.952534:ERROR:ssl_client_socket_impl.cc(978)] handshake failed; returned -1, SSL error code 1, net_error -101
Below are the podman commands used to create the runner environment from docker:io/node:18 base image
podman run -d -i --rm -v ./:/app:Z --name ${RUNNER_ID}_node --pod ${RUNNER_ID} docker.io/node:18 sh
podman exec -w /app ${RUNNER_ID}_node sh -c "apt update && apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb"
podman exec -w /app ${RUNNER_ID}_node npm ci
podman exec -w /app ${RUNNER_ID}_node npm run test
Same problem here
Current behavior
We recently upgraded our cypress from
8.7.0
to10.11.0
and started seeing the following error in our Jenkins build pipelines. Some of the tests are intermittently failing in the very beginning in the Mochabefore
hook with:However, this was not the case previously on the
8.7.0
version.Desired behavior
The tests should not fail intermittently and continue the execution like how they were in version
8.7.0
Test code to reproduce
Before each test, we navigate to a URL(
cy.navigateTo("/operator")
) as shown below:And inside the custom
navigateTo
command, we programmatically do SSO login as shown below:Cypress Version
10.11.0
Node version
14.21.0
Operating System
"os":"Linux", "arch":"x64"
Debug Logs
log.txt
Other
No response