mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 23:44:53 +00:00
Merge "build: Update linters"
This commit is contained in:
commit
fd16e04f7d
|
@ -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;
|
||||
|
|
3148
package-lock.json
generated
3148
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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' } );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue