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
Some integration tests are broken, and github actions actually tests zero of them so this is not detected #5376
Comments
Yeah, since travis-ci.org shut us out the tests appear to have all fallen over. I tried over the weekend to get them running again but didnt work. Im looking at moving them over to browserstacks since it has better intergration with nightwatch. For the moment in the pipelines intergration tests have been disabled, and I couldnt get them to run locally either. |
Related discussion in PR comments: #5371 |
Turns out I didnt disable it in pipeline.. so going to do it now. |
Thanks, then it's not just me having problems. I am manly interested in getting the integration tests running locally. Web development is annoying in that things get outdated so fast. I started on Fedora 35 and I did not get the tests to run there, so thinking it possibly might be a bit on the too new side, I also installed an VM with ubuntu 21.04 (which has nodejs version 12.22.8 which is just one version too old to be supported by some dependency, so I downloaded 12.22.9 to override with). However this environment also fails. Do you have any recommendation on what you would expect to have highest chance of success? As new as possible with everything (like using the newer nightwatch 2 beta), stay as old as possible or somewhere in between? |
Ah, that makes sense. The tests failed, and then when I opened the url in the plain firefox inside the newly created VM (I have not even installed noscript and ublock origin) the text was missing and I did not connect the dots. The text is there on my main browser with RES installed. I managed to get nightwatch 2.0.0-beta.2 to launch tests individually with running This is running against
I do not know if there is something output missing from the above? According to this issue marionette supports loading addons with some |
This started by trying to run the integration tests locally, however despite whatever problems I might have setting up a working testing environment, I found that there must be some inherent problems with at least one of the tests. Picking the smallest and simplest file,
tests/xPostLinks.js
, I cannot see how this possibly can pass.The test was added in 2016 and it tests that some element on the page contains the phrase "x-posted". I am sure that the page did contain the text the tests expect back then, but today the page does not in any way contain text that resembles the text that the test is expecting:
So am I missing anything?
Looking into the latest github action run as of writing this the
test
job is green, however looking into the "Run yarn integration chrome --retries 2 && yarn integration-only firefox --retries 2" steps it contains at the bottom after the long (~800 lines) build section the following:so that test job both fails to run any of the integration tests and also fails to detect this as a failure. This is obviously a different problem than integration tests expecting missing text to be present, but it masks detecting them.
@BenMcGarry you have been doing a lot of work with the pipelines recently, I assume you are capable and interested in looking into this?
(I found no other existing issue related to this. The code is the latest, one commit after v5.22.8)
The text was updated successfully, but these errors were encountered: