Mostly this has a bunch of whitespace changes from the template-curly-spacing and brace-style rules being set to align with other spacing rules. Change-Id: I4609c52a4ef426ad1f35fb4bfe447bb08323a8e8
17 lines
339 B
JavaScript
17 lines
339 B
JavaScript
'use strict';
|
|
|
|
const Page = require( 'wdio-mediawiki/Page' );
|
|
|
|
class WatchablePage extends Page {
|
|
|
|
get confirmWatch() {
|
|
return $( '#mw-content-text button[type="submit"]' );
|
|
}
|
|
|
|
async watch( title ) {
|
|
await super.openTitle( title, { action: 'watch' } );
|
|
await this.confirmWatch.click();
|
|
}
|
|
}
|
|
|
|
module.exports = new WatchablePage();
|