Debian Codegraph @

tests/selenium/pageobjects/watchable.page.js

raw symbols SCIP
1 'use strict';
2
3 const Page = require( 'wdio-mediawiki/Page' );
4
5 class WatchablePage extends Page {
6
7 get confirmWatch() {
8 return $( '#mw-content-text button[type="submit"]' );
9 }
10
11 async watch( title ) {
12 await super.openTitle( title, { action: 'watch' } );
13 await this.confirmWatch.click();
14 }
15 }
16
17 module.exports = new WatchablePage();