Merge "build: Update linters"

This commit is contained in:
jenkins-bot 2023-12-20 23:09:30 +00:00 committed by Gerrit Code Review
commit fd16e04f7d
5 changed files with 2102 additions and 1103 deletions

View file

@ -14,9 +14,7 @@
&-toolbarWrapper {
height: 3.5em;
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
position: -webkit-sticky;
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
position: sticky;
padding-top: 0.5em;
margin-top: -0.5em;

3164
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -16,13 +16,13 @@
"@wdio/local-runner": "7.16.13",
"@wdio/mocha-framework": "7.16.13",
"@wdio/spec-reporter": "7.16.13",
"eslint-config-wikimedia": "0.25.0",
"eslint-config-wikimedia": "0.26.0",
"grunt": "1.6.1",
"grunt-banana-checker": "0.10.0",
"grunt-banana-checker": "0.11.1",
"grunt-contrib-watch": "1.1.0",
"grunt-eslint": "24.0.1",
"grunt-stylelint": "0.18.0",
"stylelint-config-wikimedia": "0.14.0",
"grunt-eslint": "24.3.0",
"grunt-stylelint": "0.19.0",
"stylelint-config-wikimedia": "0.16.1",
"svgo": "3.0.2",
"wdio-mediawiki": "2.3.0"
}

View file

@ -3,11 +3,25 @@ const Page = require( 'wdio-mediawiki/Page' );
class EchoPage extends Page {
get alerts() { return $( '#pt-notifications-alert' ); }
get notices() { return $( '#pt-notifications-notice' ); }
get alertsFlyout() { return $( '.oo-ui-labelElement-label*=Alerts' ); }
get noticesFlyout() { return $( '.oo-ui-labelElement-label*=Notices' ); }
get alertMessage() { return $( '.mw-echo-ui-notificationItemWidget-content-message-header' ); }
get alerts() {
return $( '#pt-notifications-alert' );
}
get notices() {
return $( '#pt-notifications-notice' );
}
get alertsFlyout() {
return $( '.oo-ui-labelElement-label*=Alerts' );
}
get noticesFlyout() {
return $( '.oo-ui-labelElement-label*=Notices' );
}
get alertMessage() {
return $( '.mw-echo-ui-notificationItemWidget-content-message-header' );
}
}
module.exports = new EchoPage();

View file

@ -4,7 +4,10 @@ const Page = require( 'wdio-mediawiki/Page' );
class NotificationsPage extends Page {
get notificationHeading() { return $( '#firstHeading' ); }
get notificationHeading() {
return $( '#firstHeading' );
}
open() {
super.openTitle( 'Special:Notifications', { uselang: 'en' } );
}