Commit graph

60 commits

Author SHA1 Message Date
libraryupgrader 54060d10b8 build: Updating @wikimedia/codex to 1.6.1
Additional changes:
* Re-generated the NPM lock file.

Change-Id: Ie6bebc87beb982e7db0c7c91d84e1fc2c2ac6214
2024-06-05 20:17:04 +00:00
libraryupgrader a7b1c561ae build: Updating grunt-banana-checker to 0.13.0
Change-Id: I439e12466b841dac3909329a6506579a0bb6cdda
2024-05-19 00:22:27 +00:00
libraryupgrader a0451e2f7e build: Updating @wikimedia/codex to 1.6.0
Change-Id: Ie480b0f1178052d727a4bc7a4d94de7a50abf94c
2024-05-16 17:05:21 +00:00
libraryupgrader f5641b9957 build: Updating dependencies
composer:
* mediawiki/minus-x: 1.1.1 → 1.1.3

npm:
* grunt-banana-checker: 0.11.1 → 0.12.0

Change-Id: I8d68185a701562fc873c24f78ae50c071156ae18
2024-05-10 21:54:30 +00:00
libraryupgrader 422f5875a4 build: Updating ejs to 3.1.10
* https://github.com/advisories/GHSA-ghr5-ch3p-vcr6

Change-Id: Iea166acbe55d8528e94fb849c75c5c67f8698984
2024-05-03 03:03:24 +00:00
libraryupgrader 9c38b3951b build: Updating dependencies
composer:
* php-parallel-lint/php-parallel-lint: 1.3.2 → 1.4.0

npm:
* @wikimedia/codex: 1.4.0 → 1.5.0

Change-Id: I717c5eb09257c7c01e6f7d0edfa955d831881367
2024-05-02 21:53:01 +03:00
libraryupgrader 833a84db4a build: Updating npm dependencies
* eslint-config-wikimedia: 0.25.1 → 0.27.0
* @wikimedia/codex: 1.3.5 → 1.4.0

Change-Id: I2c36146322f92812c009ef26c6138068356aa053
2024-04-20 20:17:32 +00:00
libraryupgrader 16354a3b92 build: Updating npm dependencies
* @wikimedia/mw-node-qunit: 7.0.0 → 7.2.0
* @wikimedia/codex: 0.13.0 → 1.3.5
* wdio-mediawiki: 2.1.0 → 2.5.0

Change-Id: Iea969a601f82c8c2d84c089a9e40b91118ddfff3
2024-03-30 16:05:30 +00:00
Umherirrender 0d798414f4 build: Updating grunt-banana-checker to 0.11.1
Change-Id: I6db6a72a9876193207fe45b4673ec352ea334241
2024-02-29 22:39:25 +01:00
Jon Robson 71de06a682 Simplify the RelatedArticles extension to use Codex CSS components
Changes:
- Removes redundant styles now inside Codex
- With the new component, it's not possible to display 3 cards in a
single line at a tablet resolution, so the media query responsible
is bumped to apply only at the desktop threshold
- Decisions are documented in ADR

Bug: T286835
Change-Id: I493e8e601ccc31b3cf1f16c0b5a8975f12ef336c
2024-01-30 09:16:34 -08:00
Ed Sanders 1071a53446 build: Update linters
Change-Id: I98cbfd20fd85cdf8bb8dc1276ebbc516992212c3
2023-09-15 17:06:48 +00:00
libraryupgrader 8b041e2468 build: Updating npm dependencies
* grunt-banana-checker: 0.10.0 → 0.11.0
* stylelint-config-wikimedia: 0.14.0 → 0.15.0

Change-Id: I38e7afebed77d4b37adb1bf15c1d05be15466e6f
2023-06-02 01:40:42 +00:00
libraryupgrader ff15de9b34 build: Updating eslint-config-wikimedia to 0.25.0
Change-Id: I8796dc60f745bf3e512fe73e8688424a23947f9f
2023-05-04 10:55:50 +00:00
libraryupgrader 27eb68b969 build: Updating mediawiki/mediawiki-phan-config to 0.12.1
Additional changes:
* Set `name` in package.json.

Change-Id: I2501238817be28e5eff61830220ab0d66403f523
2023-04-29 09:46:37 +00:00
Umherirrender d244328cd3 build: Updating npm dependencies
* eslint-config-wikimedia: 0.20.1 → 0.24.0
* grunt-banana-checker: 0.9.0 → 0.10.0
* @wikimedia/mw-node-qunit: 6.2.1 → 7.0.0

Change-Id: Ied24102025b02422a6a807235bcb53bc5f6e7c98
2023-04-04 01:15:59 +02:00
Umherirrender 082a59b991 build: Updating npm dependencies
* stylelint-config-wikimedia: 0.13.0 → 0.14.0

Run stylelint fix to fix the new stylelint rule

Change-Id: Iedd35c282b67f58f4be8f74aba365e7581159956
2023-03-28 22:19:23 +02:00
Željko Filipin 52f5b78d21 Update npm lockfileVersion to v2
Updating npm to v7 updates lockfileVersion in package-lock.json to v2.

Bug: T273785
Change-Id: I14c19f8bfbfe0f463905b7bc908d61b28d06e7f1
2023-01-23 16:38:09 +01:00
Željko Filipin 1dbc2915f6 selenium: Use @wdio/spec-reporter
Dot reporter provides no information on which tests suites and tests are
executed. Spec reporter is more verbose but it also provides much more
information that is useful in general, but especially when debugging.
For example, which tests are executed and which tests are skipped.

Bug: T280331
Change-Id: If50b811df856abc555904ecab298077215b2621d
2022-05-24 14:46:02 +02:00
Jon Robson 2665e3c319 Add TypeScript support
For now it is limited to a single file RelatedPagesGateway.js
For now @types/jquery is requirement due to use of
wikimedia/mw-node-qunit and usage of MediaWiki core methods
and OOUI that use jQuery.

Change-Id: I370826bb3f521dcb5a68491990571ee1c87117ae
2022-04-27 19:11:10 +00:00
Jon Robson b528100f3d Add jest testing infrastructure
Adds a test for  resources/ext.relatedArticles.readMore/index.js

Change-Id: Icf8a5afca2489308e2bcaa611c0fe27ed9f46f3a
2022-04-19 18:51:58 +00:00
osamaahmed17 078cfb2347 selenium: Refactor WebdriverIO tests from sync to async mode
WebdriverIO has dropped support of sync mode due to breaking changes in Chromium, hence all tests have been changed to async.

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

Remove npm package: @wdio/sync.

Bug: T300797
Change-Id: Ia2a857eb46dbd613a10f48c686bcf6b2fdc3e202
2022-02-09 16:15:05 +00:00
libraryupgrader 6b45f6ea82 build: Updating jsprim to 1.4.2
* https://npmjs.com/advisories/1006724 (CVE-2021-3918)

Change-Id: I25ac93c55a9d4971851c353e5b0ab284751d3a55
2021-11-30 06:25:23 +00:00
libraryupgrader 524f3773f2 build: Updating validator to 13.7.0
* https://npmjs.com/advisories/1004784 (CVE-2021-3765)

Change-Id: I94248f824b066d42414a8edb71c0851ca8f7bf23
2021-11-05 11:04:36 +00:00
libraryupgrader 07e7b5bb0b 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: I9bac58167708f2a07337d9d0350a11422753208e
2021-10-05 07:35:01 +00:00
libraryupgrader e9179d5577 build: Updating stylelint-config-wikimedia to 0.11.1
Change-Id: I122553868da7515bd46d8115549fa5a116ac660f
2021-09-04 21:51:08 +00:00
acald d9dccf23fd RelatedArticles uses Grunt. This package is unecessary and inconsistent with other repositories.
Uninstalled the following packages: grunt, grunt-eslint, grunt-stylelint

Removed Gruntfile.js since Gruntfile is not longer necessary

Bug: T286832
Change-Id: I4fe5ee2db080f1a2be9607f302704c8c3bf5a233
2021-08-02 20:12:04 +00:00
libraryupgrader 6d03335fb9 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0

npm:
* postcss: 7.0.35 → 7.0.36
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)
* glob-parent: 5.1.1 → 5.1.2
  * https://npmjs.com/advisories/1751 (CVE-2020-28469)
* trim-newlines: 3.0.0 → 3.0.1
  * https://npmjs.com/advisories/1753 (CVE-2021-33623)

Change-Id: I8c7d9480e97f500a851775c9444c9e21a9ca5b82
2021-07-23 20:55:02 +00:00
sahil 0512e508db 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: I35a7b000de1f0b55d8e797e0ff35b0b3590460e7
2021-06-21 20:46:30 +05:30
sahil 3a2f197a9e selenium: Upgrade WebdriverIO to v7
Update npm packages: @wdio/* and webdriverio.

Bug: T274579
Change-Id: I2efdb705cba8515963143d6ce025396f5c0672b8
2021-06-17 21:50:01 +05:30
libraryupgrader c9de950ffd build: Updating browserslist to 4.16.6
* https://npmjs.com/advisories/1747 (CVE-2021-23364)

Change-Id: I52662b22940a12c3df9559683bab69a96b1753cc
2021-05-28 03:51:56 +00:00
libraryupgrader 68cd3839e7 build: Updating hosted-git-info to 2.8.9
Change-Id: I8a933ce63d0f1353b3bcf0d4a2dcb68385bebda5
2021-05-21 04:47:56 +00:00
libraryupgrader 64282bce15 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0
* php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0

npm:
* grunt: 1.3.0 → 1.4.0
* lodash: 4.17.19 → 4.17.21
  * https://npmjs.com/advisories/1673 (CVE-2021-23337)
* hosted-git-info: 2.8.8 → 3.0.8
  * https://npmjs.com/advisories/1677 (CVE-2021-23362)
* ua-parser-js: 0.7.21 → 0.7.28
  * https://npmjs.com/advisories/1679 (CVE-2021-27292)
* postcss: 7.0.35 → 8.2.15
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)

Change-Id: Ie00a61524a48d62913c31f344e9aeb7e631aec5c
2021-05-13 04:31:19 +00:00
Željko Filipin edeb38fc58 selenium: Add JUnit reporter
JUnit reporter is required to create the XML file that Jenkins uses to
create Test Result Trend chart for selenium-daily-beta-RelatedArticles
job.

Bug: T214686
Change-Id: I6d950630a85def4987118d107c15f7c7f309488c
2021-04-29 17:02:37 +02:00
libraryupgrader 5bf0e2906b build: Updating eslint-config-wikimedia to 0.20.0
Change-Id: I1a618cead385aa1825146844763307a1dd4c30b1
2021-04-14 03:08:32 +00:00
libraryupgrader abe3f9fab5 build: Updating y18n to 4.0.1
* https://npmjs.com/advisories/1654 (CVE-2020-7774)

Change-Id: I77529de491f9327c35d2b5a8af633fe950b7d9ac
2021-03-30 06:39:22 +00:00
libraryupgrader b2121295bd build: Updating eslint-config-wikimedia to 0.19.0
Additional changes:
* eslint: Renamed `wikimedia/client` profile to `client-es5` (T277085).

Change-Id: I526783f28521561ee0b86f45777debc2e90d22aa
2021-03-14 11:21:13 +00:00
libraryupgrader 10578329de build: Updating eslint-config-wikimedia to 0.18.2
Change-Id: I94e98946d08d5dd6b00a7d8290b0d296d3865b3f
2021-03-07 18:53:35 +00:00
libraryupgrader 7cf2c9513e 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
  The following rules are failing and were disabled:
  * compat/compat

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

Change-Id: Ifc15b65a8f6e5c4d47522d76c31912508dff4bb4
2021-01-30 09:13:04 +00:00
libraryupgrader c48fe93ebc build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.10.4 → 0.10.5

npm:
* ini: 1.3.5 → 1.3.7
  * https://npmjs.com/advisories/1589

Change-Id: Icc68119bdb1c5c7cc331a098f660b678e8d4354b
2020-12-11 05:51:30 +00:00
libraryupgrader e9fa5131db build: Updating npm dependencies
* grunt-stylelint: 0.15.0 → 0.16.0
* stylelint-config-wikimedia: 0.10.1 → 0.10.3

Change-Id: Ife8334ee95cced50c45f1417c90e225b7ef753de
2020-11-22 09:20:03 +00:00
libraryupgrader 60c14ea5d8 build: Updating bl to 4.0.3
* https://npmjs.com/advisories/1555

Change-Id: Id3b417792c2241da50c6b7f1df3d3ee542774ea5
2020-09-08 23:44:49 +00:00
libraryupgrader 70417dee7a build: Updating npm dependencies
* eslint-config-wikimedia: 0.16.2 → 0.17.0
* grunt: 1.2.1 → 1.3.0

Change-Id: I667a6483d8c3eb3cf38964b6aff80ac872c5db77
2020-09-04 16:46:32 +00:00
libraryupgrader 1d8e6d7504 build: Updating grunt to 1.2.1
Change-Id: I0627eee756b345903e51d99abbe21eab3ec400ee
2020-07-18 22:09:24 +00:00
libraryupgrader d3830d0366 build: Updating lodash to 4.17.19
* https://npmjs.com/advisories/1523
* CVE-2019-10744

Change-Id: I72101f7499d2e42b6792d241b374f908966eefbe
2020-07-11 01:37:35 +00:00
Ed Sanders ebecd9c144 build: Update eslint-config-wikimedia to 0.16.2
Change-Id: Ib6681e7d5fb03f4fa54823bf0d37e16d37be3416
2020-06-23 20:30:43 +01:00
vidhi-mody a7591f2a06 Selenium: Update to WebdriverIO v6
Update NPM packages: @wdio/* and webdriverio.

Bug: T250685
Change-Id: I19e82b1bcdaec4c4dc95fdbf01a1b50858ecd94a
2020-06-06 00:46:23 +05:30
vidhi-mody e4f2b070c1 Selenium: Update to WebdriverIO v5
Update NPM packages: webdriverio, wdio-mediawiki.
Update ESlint configuration.

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 `$`.
- `chromeOptions` with `'goog:chromeOptions'`.
- `password` with `mwPwd`.
- `username` with `mwUser`.
- `isVisible()` with `isDisplayed()`.

Bug: T250685
Change-Id: Ic8b49974c05f88a2010c118198b49ee10c175c68
2020-05-27 23:05:51 +05:30
libraryupgrader afc946ec53 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 29.0.0 → 30.0.0

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

Change-Id: I28ffb62778358450b7518db4035bc22d6440ccb8
2020-04-24 20:36:36 +00:00
libraryupgrader 8f2ca71895 build: Updating grunt-banana-checker to 0.9.0
Change-Id: If701c5f54293631f9a851fd202ef5689e8d2117d
2020-04-20 06:50:08 +00:00
libraryupgrader 9639c53e6b build: Updating postcss-sass to 0.4.4
* https://npmjs.com/advisories/1179

Change-Id: I34fc3c029ae61f25de2b27e3586672e8db75d3c0
2020-04-05 09:12:41 +00:00