wiki.techinc.nl/tests/selenium/pageobjects/watchlist.page.js
Peter Hedenskog 4a42035c11 Add missing async.
This commit adds missing async defintions in a couple of
methods for our wdio page tests. It's better to define the
functions so that its clear that its async.

Bug: T358092
Change-Id: I9006deb9a9a0bb524ab61a16c6f41621482f21bf
2024-02-21 12:29:07 +01:00

17 lines
304 B
JavaScript

'use strict';
const Page = require( 'wdio-mediawiki/Page' );
class WatchlistPage extends Page {
get titles() {
return $( '.mw-changeslist' )
.$$( '.mw-changeslist-line .mw-title' );
}
async open() {
return super.openTitle( 'Special:Watchlist' );
}
}
module.exports = new WatchlistPage();