Commit graph

85 commits

Author SHA1 Message Date
Ed Sanders 61879d1369 build: Update linters
Change-Id: Iacd5cd029101ae514d1ed4c3167bf013ff635108
2024-06-21 18:00:43 +01:00
Ed Sanders ed1501c577 JSDoc: Update jsdoc-wmf-theme to 1.0.1
Change-Id: I8237dd3aa9ad73dce59e9a9bf001d6af5de8e185
2024-06-10 16:15:48 +01:00
Ed Sanders 77b7f347c8 build: Update eslint-config-wikimedia to 0.28.0
Change-Id: I9f69e865d47e7cf4a8273bb0fdffbb9dac28b5cb
2024-06-06 16:28:53 +01:00
WMDE-Fisch d05b738a29 [Cypress] Disable CI Citoid flaky test
I'm still not sure what causes this to fail in CI locally they
are running fine. In the CI it seems from the recordings, that
Citoid is not loaded when these tests are executed.

Bug: T366383
Change-Id: Iee9e4dd04e08fd3ddfa77409d037ec80f84ead3e
2024-06-03 11:50:11 +02:00
WMDE-Fisch df288d828d [build] Update Cypress to v13.8.1
Fixes issues with Chromium browsers.

Change-Id: I7e3582fcafd382ba666241deb02021ad134721e1
2024-04-30 12:54:37 +02:00
libraryupgrader 8e8dae4100 build: Updating dependencies
composer:
* php-parallel-lint/php-parallel-lint: 1.3.2 → 1.4.0

npm:
* eslint-config-wikimedia: 0.26.0 → 0.27.0

Change-Id: Icf14934fe507d9e8147657f38fc441c577d6e09b
2024-04-26 11:10:51 -07:00
jenkins-bot 5041bb598b Merge "Move Cypress tests under tests/ directory" 2024-04-04 13:55:44 +00:00
thiemowmde d2a244b753 Move Cypress tests under tests/ directory
Bug: T358851
Change-Id: I084f4e098c00d4c1bbcb0e692a2be3b1f8ce59a2
2024-04-04 13:06:26 +00:00
thiemowmde 8967ad6bfb Remove unused WDIO/Selenium dependencies
These are unused, aren't they? The tests are gone since Ieb71b12.

Bug: T358851
Change-Id: I6c65c781aeeedb8d5b2262d4c9fd24eaf18cadce
2024-04-03 09:36:20 -04:00
Lucas Werkmeister b7a1116df6 Configure CYPRESS_CACHE_FOLDER
The default doesn’t seem to work well in CI. (Note that cypress/.cache
is already in the .gitignore.)

Bug: T361520
Change-Id: I7e56d102ac2252a23b49c68f9df8940d5c060aa9
2024-04-02 14:55:31 +02:00
Adam Wight 5369076028 Initial support for generating jsdoc
Not perfect, some classes are missing.  But it runs successfully and
generates some docs already.

Bug: T358641
Change-Id: Ie10e48ab9ac80e4969a152562a746cb54c7ec0e4
2024-02-28 09:22:59 +01:00
libraryupgrader dfec4fa9f1 build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.1 → 0.14.0

npm:
* grunt-banana-checker: 0.11.0 → 0.11.1
* semver: 5.7.1, 7.5.4 → 5.7.2, 7.5.4
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw

Change-Id: I21a5260f36c4fa0d767ec6bba86fcfa35ff0a369
2024-02-14 07:41:08 -05:00
mareikeheuer 0f801ea550 Port Cite web test suite to Cypress
Steps to implement:

 Copy over and adapt setup files, to install Cypress in the Cite code base.
 Port tests/selenium/specs/backlinks.js and supporting file cite.page.js to run under the Cypress environment, in a second patchset.
 Run the new suite in CI, replacing the previous selenium integration.
 Delete the selenium test suite.

Bug: T353436
Change-Id: Ie76371e18d8612daa7c7be741432c6f3e0b783b5
2024-01-17 11:45:04 +01:00
WMDE-Fisch 2a02f5311d build: Update linter libs
* "eslint-config-wikimedia": "0.26.0"
* "grunt-eslint": "24.3.0"
* "grunt-stylelint": "0.19.0"
* "stylelint-config-wikimedia": "0.16.1"

Including auto fixes.

Change-Id: Iadacfc781a48675022144bb8c9489073d0bc19e3
2023-12-12 14:21:07 +01:00
WMDE-Fisch f97aad41f7 [build] Bump wdio-mediawiki to v2.3.0
Change-Id: Ifcc22478c54fe17e1c8478e7cf2fb02d3f643325
2023-09-22 16:01:56 +00:00
WMDE-Fisch 9d2856536b build: Updating npm dependencies
Change-Id: I78639f81504fbe2bf1c82a41f1a3862d2f726e38
2023-05-30 19:12:10 +02:00
libraryupgrader 421287cd58 build: Updating eslint-config-wikimedia to 0.25.0
Change-Id: I1ee4a9eb03e7e8dc22e1f69a87029a50d63e8d83
2023-05-05 02:11:54 +00:00
libraryupgrader 8ebcd80b46 build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.0 → 0.12.1

npm:
* grunt-eslint: 24.0.0 → 24.0.1

Change-Id: Ib701545627fe7b0ba9c6219f67693ae586d72e77
2023-04-29 00:59:28 +00:00
Peter Wangai 27ab8a437d selenium: Refactor WebdriverIO tests from sync to async mode
WebdriverIO has dropped support of sync mode, hence changed to async.

Update npm packages: @wdio/*, wdio-mediawiki
because async mode needs at least @wdio v7.9.

Remove npm packages: @wdio/dot-reporter and @wdio/sync.

Bug: T300196
Change-Id: I8a2ba7f87496b19cc22c347088d52e56741cac71
2023-03-20 19:13:40 +03:00
libraryupgrader 09e81680e6 build: Updating npm dependencies
* eslint-config-wikimedia: 0.22.1 → 0.24.0
* grunt: 1.5.3 → 1.6.1

Change-Id: I8af7b599bb58e0097cce61394c782db4c641910c
2023-03-16 01:50:57 +00:00
Subramanya Sastry 8d93818fc8 Use double-colon for pseudo-elements
* Linting rule has been fixed to accept these now.

Change-Id: I51d866ec18c9e1d675f43b3c60f3ad874bba041e
2023-03-14 16:49:10 -04:00
Peter Wangai ec5f77e840 selenium: Remove webdriverio npm package from the Cite extension
The `webdriverio` package does not need to be an explicit dependency.
It is a dependency of `@wdio/cli`.

Bug: T325059
Change-Id: I16501b07145641d15671e43561e258df2d5a3457
2023-01-11 15:15:29 +03:00
libraryupgrader 9db10f4d83 build: Updating grunt-stylelint to 0.18.0
Change-Id: Id0d84e5ce4d647555acd44b29eded948fddf5ce1
2022-11-13 02:20:15 +00:00
libraryupgrader b36efa2fc8 build: Updating grunt-banana-checker to 0.10.0
Change-Id: I2c5609766bbe83bf80b154f7851d97662e2e2a9d
2022-10-06 21:00:10 +00:00
libraryupgrader 3ab0da7b75 build: Updating grunt to 1.5.3
Change-Id: I3cee4a7b763dd7e5979af66bcd6b01680b5894c0
2022-05-26 08:44:00 +00:00
libraryupgrader a1a25ba16f build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 38.0.0 → 39.0.0
* php-parallel-lint/php-console-highlighter: 0.5.0 → 1.0.0
* php-parallel-lint/php-parallel-lint: 1.3.1 → 1.3.2

npm:
* grunt: 1.4.1 → 1.5.2
* stylelint-config-wikimedia: 0.12.2 → 0.13.0
* wdio-mediawiki: 1.1.1 → 1.2.0
* async: 3.2.2 → 3.2.3
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
* ejs: 3.1.6 → 3.1.8
  * https://github.com/advisories/GHSA-phwq-j96m-2c2q
* jake: 10.8.2 → 10.8.5
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
* minimist: 1.2.5 → 1.2.6
  * https://github.com/advisories/GHSA-xvch-5gv4-984h

Change-Id: I7f0ba2e2f56f49f24b265b679d34df5e810f9b2e
2022-05-21 01:03:13 +00:00
Ed Sanders a68b8f01b7 build: Update linters
Change-Id: Ifbb1346f854e15efa3389fddc1b338b6444f613f
2022-03-03 23:52:33 +00:00
libraryupgrader 9e2e49555c build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.11.0 → 0.11.1

npm:
* json-schema: 0.2.3 → 0.4.0
  * https://github.com/advisories/GHSA-896r-f27r-55mw
* jsprim: 1.4.1 → 1.4.2
  * https://github.com/advisories/GHSA-896r-f27r-55mw
* mocha: 9.1.3 → 9.2.0
  * https://github.com/advisories/GHSA-qrpm-p2h7-hrv2
* nanoid: 3.1.25 → 3.2.0
  * https://github.com/advisories/GHSA-qrpm-p2h7-hrv2
* node-fetch: 2.6.6 → 2.6.7
  * https://github.com/advisories/GHSA-r683-j2x4-v87g

Additional changes:
* Set `name` in package.json.
* eslint: Added `wikimedia/mediawiki` profile (T262222).

Change-Id: I4eaa22a563fc9c8b1d6536608b0d1937950f136e
2022-02-06 07:44:34 +00:00
Timo Tijhof 635850aae8 build: Remove unused npm package fields
The name/version/desc keys are not used and usually not set when the
repo package is marked "private", as the case for repos where npm is
only used for development purposes.

Change-Id: Idf796dfa5cc269109c7be397764850ee4ffe04e6
2021-11-10 20:28:30 +00:00
Ed Sanders cb60e7aa04 build: Update eslint-config-wikimedia to 0.21.0
Change-Id: I86a44d7c73a107fb318abeda9e503e99083f48db
2021-11-09 14:25:34 +00:00
libraryupgrader 33e2ff79b5 build: Updating npm dependencies
* @wdio/mocha-framework: 7.4.6 → 7.13.2
  * https://npmjs.com/advisories/5197 (CVE-2021-3807)
* ansi-regex: 5.0.0 → 5.0.1
  * https://npmjs.com/advisories/5197 (CVE-2021-3807)

Additional changes:
* composer.json: Updated phpcs command in composer test (T280592).
* composer.json: Added phpcs command to scripts (T280592).

Change-Id: I9aa26cf3664857fac671dc15718e5341798625d2
2021-10-04 13:21:21 +00:00
libraryupgrader 13677c06a6 build: Updating stylelint-config-wikimedia to 0.11.1
Change-Id: I0e1764c11a81c67c40428004bfd0e5ce873e8f69
2021-09-04 18:50:51 +00:00
anjali041 77a082a96e selenium: Upgrade WebdriverIO to v7
Update npm packages: @wdio/* and webdriverio.

Bug: T274579
Change-Id: I5fc8d2a7f3514e6c70668b0546b057f7de8c551a
2021-06-15 14:02:39 +02:00
sahil d7ad615e67 selenium: Update wdio-mediawiki
wdio-mediawiki v1.1.1:
- Includes wdio-defaults.conf.js file that vastly simplifies wdio.conf.js.
- Replaces @wdio/spec-reporter with @wdio/dot-reporter.
- Introduces video recording.

Bug: T283597
Change-Id: Ic62db3ca745a94573b2b0500f49a45bb2a0dcd4f
2021-06-09 15:03:58 +02:00
Volker E 048a887955 build: Remove 'grunt-svgmin' package
There are no SVGs left in Cite, hence removing package.

Change-Id: I608c1b7a4e9d989fc9d58ac29c57d6d9d18cae96
2021-05-17 17:51:41 -07:00
libraryupgrader 76c5a28200 build: Updating npm dependencies
* grunt: 1.3.0 → 1.4.0
* hosted-git-info: 2.8.8 → 2.8.9
  * https://npmjs.com/advisories/1677 (CVE-2021-23362)

Change-Id: I4056ded4526eb670ca29bc270d8f0d41b3296f75
2021-05-09 04:08:47 +00:00
libraryupgrader 45fb9da777 build: Updating eslint-config-wikimedia to 0.20.0
Change-Id: I12ebc779b412ab4277695af932daa53435190005
2021-04-16 05:25:52 +00:00
libraryupgrader 6f2420d0bd build: Updating eslint-config-wikimedia to 0.19.0
Additional changes:
* eslint: Renamed `wikimedia/client` profile to `client-es5` (T277085).

Change-Id: I676c244a56efc85f6f152e55828e95904e7d44d4
2021-03-13 06:42:20 +00:00
libraryupgrader d91060fbea build: Updating eslint-config-wikimedia to 0.18.2
Change-Id: I7812606451f4309d422892dab633b55b5394cbf1
2021-03-06 08:43:54 +00:00
libraryupgrader be7f1b3bd7 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 34.0.0 → 35.0.0
* mediawiki/minus-x: 1.1.0 → 1.1.1

npm:
* eslint-config-wikimedia: 0.17.0 → 0.18.1

Additional changes:
* Added the "composer phan" command to conveniently run phan.

Change-Id: I2e27a8ae5547829501c25402da5b72b390897ca1
2021-01-29 06:21:06 +00:00
libraryupgrader 0c615fc36f build: Updating npm dependencies
* grunt-stylelint: 0.15.0 → 0.16.0
* stylelint-config-wikimedia: 0.10.1 → 0.10.3

Change-Id: I0d9879effbe670cd83dca5fac9722dafaeff7b48
2020-11-21 21:53:19 +00:00
libraryupgrader 36659b995f build: Updating npm dependencies
* eslint-config-wikimedia: 0.16.2 → 0.17.0
  The following rules are failing and were disabled:
  * no-shadow

* grunt: 1.2.1 → 1.3.0

Change-Id: I2ee910e2940c3db520531b91329955d01f2a9076
2020-09-05 10:14:03 +00:00
libraryupgrader d52f8cf5c2 build: Updating grunt to 1.2.1
Change-Id: I64ccb005689bd13caa12aadeca85cc3454bea318
2020-07-18 02:08:25 +00:00
libraryupgrader 063cc59e83 build: Updating eslint-config-wikimedia to 0.16.2
Change-Id: Ic73890c4398c3f08946b4c9677d7e24c634ae7ba
2020-07-15 21:59:30 +00:00
vidhi-mody 7d0c85afe6 Selenium: Update to WebdriverIO v6
Update NPM packages: @wdio/* and webdriverio.

Bug: T253343
Change-Id: I98d452af0af248cf7221e355550ed8b7b8975aa4
2020-06-25 15:12:19 +05:30
vidhi-mody 76c38c766d Selenium: Update to WebdriverIO v5
Update NPM packages: webdriverio, wdio-mediawiki.

Replace NPM packages:
- wdio-mocha-framework with @wdio/mocha-framework.
- wdio-spec-reporter with @wdio/spec-reporter.

New NPM packages: @wdio/cli, @wdio/local-runner, @wdio/sync.

Replace:
- `browser.element` with `$`.
- `browser.elements` with `$$`.
- `chromeOptions` with `'goog:chromeOptions'`.
- `password` with `mwPwd`.
- `username` with `mwUser`.
- `waitForVisible()` with `waitForDisplayed()`.
- `isVisible()` with `isDisplayed()`.

Bug: T253343
Change-Id: Ia656c8bc9fa76ae80bc356dc18c821a93b8cd875
2020-06-25 01:19:38 +05:30
Ed Sanders 85a4e23008 build: Update devDependencies
Change-Id: I38b506d6e058f639e0e7d95c3e60616dbef5af10
2020-06-09 11:29:03 +01:00
libraryupgrader f819e6374c build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 29.0.0 → 30.0.0

npm:
* eslint-config-wikimedia: 0.15.0 → 0.15.3
  The following rules are failing and were disabled:
  * mediawiki/class-doc

* grunt-stylelint: 0.14.0 → 0.15.0
* stylelint-config-wikimedia: 0.9.0 → 0.10.1

Change-Id: I5e285118302582daa288d0afc30860ab0693d332
2020-04-22 06:25:11 +00:00
libraryupgrader ab2a68d8ec build: Updating grunt-banana-checker to 0.9.0
Change-Id: I4fac62c79bb08c5d09f16a1ad5fe003e2d357f21
2020-04-19 01:54:20 +00:00
libraryupgrader 3df0f16358 build: Updating minimist to 1.2.5
* https://npmjs.com/advisories/1179

Change-Id: Ide732616d562684edab9a71c1998976297b54629
2020-03-18 04:41:02 +00:00