-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Expected there to be a timestamp for current step error while running tests #1222
Comments
Hey, and thanks for reporting this issue. You need to provide a minimal, reproducible example that illustrates the issue. |
We got the same last night. Unfortunately I don't have more information than already provided. This is the first time I've seen this though. |
This is random error and there is no way to reproduce this error. I am trying to create a repo with the required details in case I understand where exactly this issue is coming from. |
I'm getting a similar but slight different error I've managed to reliably reproduce my issue by running 2 scenarios in a feature that both fail, with the second scenario changing the baseUrl and visiting a different domain. With @RankaPalak are you changing the baseUrl in your tests? |
@tbeckettaa, aside from the somewhat similar wording of the error messages, each expectation-error usually represents completely different edge-cases, with uncomparable fixes. My advice is to open up a new ticket and provide said reproducible example. |
Same issue here and some first analysis: This is actually a symptom of the error handling here:
This means that there is another error and because of that error no timestamp is there which then produces the error you see. The other error is caused of a nullpointer accessing the id here:
This means the stack of is out of sync / empty. |
@mscudlik, if you have seen line 545, IE.
.. fail with a "nullpointer access" (I assume you mean an error á |
Hey @tbeckettaa No, I am not changing any URL. |
I'm having the same issue, it is randomly happening between 330 tests, so I don't think we would be able to provide a reproducible example.. Stacktrace on the error:
|
To everyone experiencing this error in a CI environment and not locally. CI environments aren't actually inherently different and there's nothing that will only ever happen there. It's just a different machine. As explained multiple times on this tracker already, typically you do something different in CI. You might be running You might be running Cypress in parallel in your CI environment, using something like the You might be running Cypress in a container in your CI environment. There's nothing stopping you from doing this locally as well. You might be using a different configuration file when running Cypress in your CI environment, attaching things such as code coverage. This is also possible to do locally. Essentially, there's no such thing a "this inherently only happens in a CI environment". You just haven't made a big enough effort to replicate the environment. And if you want to see this issue solved, you need to provide me with something that's going to help me reproduce it. |
Current behavior
Random expected there to be a timestamp for current step (this might be a bug, please report at https://github.com/badeball/cypress-cucumber-preprocessor) error is occurring while running the tests.
Because this error occurred during a after each hook we are skipping the remaining tests in the current suite:
Desired behavior
Test should not halt in between.
Test code to reproduce
-- To be added.
Versions
"@bahmutov/cypress-esbuild-preprocessor": "^2.2.0",
"@deepakvishwakarma/cucumber-json-formatter": "^0.0.3",
"cypress": "12.17.3",
"cypress-recurse": "^1.31.2",
"dayjs": "^1.11.7",
"esbuild": "0.18.17",
"pactum": "^3.2.3",
"pkg": "^5.8.0",
"prettier": "^2.8.0",
"otplib": "^12.0.1",
"cypress-wait-until": "^3.0.1"
"@badeball/cypress-cucumber-preprocessor": "18.0.2",
"convert-units": "^2.3.4",
"cucumber-html-reporter": "^5.5.0",
"cypress-keycloak-commands": "^1.2.0",
"cypress-real-events": "^1.8.1",
"dotenv": "16.3.1",
"fs-extra": "^11.1.0",
"lodash": "^4.17.15",
"multiple-cucumber-html-reporter": "3.4.0",
"node-fetch": "^2.6.0",
"performance-results-parser": "0.0.4",
"test-results-parser": "latest",
"typescript": "^3.8.3"
Checklist
[email protected]
(package name has changed and it is no longer the most recent version, see #689).The text was updated successfully, but these errors were encountered: