Skip to content

Conversation

@PVince81
Copy link
Member

Manual backport of #30567 to stable23.
Ran "npm i" again to update the lock file, and recompiled the assets.

This makes sure that the pinned versions are selected correctly.
Fixes the colors.js incident.

Signed-off-by: Vincent Petry <[email protected]>
Signed-off-by: Vincent Petry <[email protected]>
Prevent XHR during load by checking window.TESTING.
Adjust some expected values.

Signed-off-by: Vincent Petry <[email protected]>
Signed-off-by: Vincent Petry <[email protected]>
@PVince81 PVince81 added the 3. to review Waiting for reviews label Jan 10, 2022
@PVince81 PVince81 added this to the Nextcloud 23.0.1 milestone Jan 10, 2022
@PVince81 PVince81 self-assigned this Jan 10, 2022
@PVince81
Copy link
Member Author

some complications :-/

I'll have a look.

@julien-nc
Copy link
Member

Can we run those test locally only by running autotest-js.sh?
I get this on master and bugfix/noid/npm-ci-for-karma/stable23 branches:

1) generates plural with default function when no forms specified
     OC.L10N tests plurals
     Expected '0 Datei herunterladen' to equal '0 Dateien herunterladen'.
    at checkPlurals (core/js/tests/specs/l10nSpec.js:74:6)
    at Object.<anonymous> (core/js/tests/specs/l10nSpec.js:109:4)

@PVince81
Copy link
Member Author

PVince81 commented Jan 10, 2022

Can we run those test locally only by running autotest-js.sh? I get this on master and bugfix/noid/npm-ci-for-karma/stable23 branches:

1) generates plural with default function when no forms specified
     OC.L10N tests plurals
     Expected '0 Datei herunterladen' to equal '0 Dateien herunterladen'.
    at checkPlurals (core/js/tests/specs/l10nSpec.js:74:6)
    at Object.<anonymous> (core/js/tests/specs/l10nSpec.js:109:4)

yes you can.

and I'm sad to see that you're getting even different errors than what I see locally 😢

@PVince81
Copy link
Member Author

the tests passed on CI though now for stable23

@artonge
Copy link
Contributor

artonge commented Jan 10, 2022

Can we run those test locally only by running autotest-js.sh?

They currently have to be run with npm 6, which could explain your error.

@PVince81 PVince81 merged commit 67fcbac into stable23 Jan 11, 2022
@PVince81 PVince81 deleted the bugfix/noid/npm-ci-for-karma/stable23 branch January 11, 2022 07:53
@blizzz blizzz mentioned this pull request Jan 14, 2022
This was referenced Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants