-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests always failling in GitHub Actions #30183
Comments
There's not much for us to look into on our side for this. This element is not being found for some reason. Test Replay is a good way to debug failures in CI as it replays entirely what happened where you can visually see it. |
See https://github.com/cypress-io/github-action/blob/master/README.md#custom-test-command Using Take a look at the examples in https://github.com/cypress-io/github-action/blob/master/README.md to see how the action is intended to be used. https://github.com/fabu1985/algo/actions/runs/10704642103/job/29678128833?pr=12 is not readable: 404 error - probably a private repository. You need to make it public if you want anybody to look at it. |
I debugged it, I tried visiting the Google hompeage and everything is ok. The problem it´s only with my tests against the builded page. Locally, they are running succesfully |
@MikeMcC399 I created a test to check the Google Homepage, and it´s ran ok. The tests thar are running against the builded page still failling. |
There is no new information in this issue to allow further analysis. The only information is the error message:
|
@MikeMcC399 let me tell u that I did some changes, like as:
This is the static azure page, you can see that the page is ok: This is the particular command that I use |
It seems that you are having a problem using When I view https://calm-sea-0e6f37a10-139.centralus.3.azurestaticapps.net/ in Google Chrome, it first displays content, then it displays only a blank page. |
I´m use "cypress-cucumber-preprocessor": "^4.3.1" |
This is an old version which has been replaced by @badeball/cypress-cucumber-preprocessor. See badeball/cypress-cucumber-preprocessor#689 This topic is however outside of the scope of a Cypress bug report in this issue list. |
ok, understood. My question is, why do you think that the problem is cucumber-preprocessor? |
There isn't enough information available in this issue to say where the problem lies. If there is a product bug then in most cases you will be asked to test on the latest Cypress version or Cypress plugin version to confirm that it is not a problem which is already solved. Considering that your error is not being able to find an element and the URL https://calm-sea-0e6f37a10-139.centralus.3.azurestaticapps.net/ continues to show a blank page when I view it, you may want to check whether it is displaying the content that you expect. |
@MikeMcC399 just in case, can you try to open the site in chrome, please? I'm almost sure you're using a different browser than Chrome, right? For rome developed reason the site worked ok in chrome, chromium, electron. but not for another browser.That's why I make sure that when running the githubactions I use the chrome browser |
As I wrote in #30183 (comment), I am using Google Chrome. Currently I have Version 128.0.6613.120 (Official Build) (64-bit) installed. |
So, let me tell u that I replaced the "cypress-cucumber-preprocessor": "^4.3.1" by @badeball/cypress-cucumber-preprocessor, as you suggested me. Also, I increase the timeout...and still not working: the tests agaisnt the azure static page failt. |
Please consider the original #30183 (comment) from the Cypress.io team:
|
Current behavior
This is my job :
So, the result is always the same
Desired behavior
No response
Test code to reproduce
https://github.com/fabu1985/algo/actions/runs/10704642103/job/29678128833?pr=12
Cypress Version
13.14.1
Node version
20.14.0
Operating System
ubuntu
Debug Logs
No response
Other
I check it running a simple test against Google page, and worked ok. It´s means the latest versions for cypress and libraries updated, are not the problem, aparently.
I harcoded the baseurl and the problem still happening.
I´ll appreciatte u any idea o suggestion... thanks!!!
The text was updated successfully, but these errors were encountered: