-
-
Notifications
You must be signed in to change notification settings - Fork 737
False positives failures in CI but not local since updating CodeceptJS #3639
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
Comments
I've also tried replacing
with
But the results were the same, so I don't think it's the difference in how the environment is mounted. |
I see that between the upgrades that the assertions that were taking about 155ms to validate is immediately failing 4ms in. waitForAction is currently set to 1500, and waitForTimeout is 10000. But these 2 don't seem to have an impact on what's happening here. I tried to look into assertion timeouts but couldn't find anything in the documentation. Am I missing something? |
CI behaving strangely was due to this not being configured https://codecept.io/plugins/#steptimeout Context being destroyed was because of |
What are you trying to achieve?
Running tests in the pipeline to give the same results as the local environment.
What do you get instead?
So for many tests we've needed to disable them in the CI as the test is unable to find the xpath with the value when trying to see the data on screen.
For this sample above, the wait for element passes correctly, but it's not able to see the same element it just waited for. The allure report mentions it's undefined.
It's also inconsistent. It might pass in one test and then fail in another. Checking the screenshot, the element is clearly present and it always passes in the local environment.
Example from another test
The content it was looking for was present in the screenshot
Details
We recently also updated the docker image running in our CI and since then the problems have started.
The text was updated successfully, but these errors were encountered: