Conversation
This makes sure that the pinned versions are selected correctly. Fixes the colors.js incident. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
|
interesting... so the colors.js issue has disappeared, but now the errors on CI match what I always see locally. so at least now the envs are aligned (at least for mine), so it looks like those issues will need solving also |
We probably should update the dependencies and then pin the colors.js dependenfy to 1.4.0 |
|
@CarlSchwan sounds like a good plan, I'll try that. Thanks |
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
|
I ran npm install with the pinned dep for colors and pushed the updated package-lock.json. |
|
I saw that recently more stuff got bundled into the JS files, even stuff that isn't supposed to auto-load during test runs. Causes some XHR to be done too early. Something to examine later. I had a look at the contacts menu failure where 1 call to console.error is expected instead of 3. so possibly it's those additional bundles that get loaded that cause more side effects |
Prevent XHR during load by checking window.TESTING. Adjust some expected values. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
|
fixed the tests, they pass locally with Chromium and Firefox |
|
JSUnit passed! 🎉 |
|
I've re-requested a review due to the changes being bigger. |
artonge
left a comment
There was a problem hiding this comment.
One step closer to making them work with npm 7 !
|
/backport to stable23 |
|
/backport to stable22 |
|
/backport to stable21 |
|
(I'm sure there will be backport conflicts, am already bracing for them...) |
Maybe put build files into a separate commits so it eases backports |
ah, too late. in any case, I expect conflicts on package-lock perhaps |
|
The backport to stable23 failed. Please do this backport manually. |
|
The backport to stable22 failed. Please do this backport manually. |
|
The backport to stable21 failed. Please do this backport manually. |
This makes sure that the pinned versions are selected correctly.
Fixes the colors.js incident.
This should make CI for JS tests work again.