| 1 | 'use strict'; |
| 2 | |
| 3 | const Page = require( 'wdio-mediawiki/Page' ); |
| 4 | |
| 5 | class HistoryPage extends Page { |
| 6 | get heading() { |
| 7 | return $( '#firstHeading' ); |
| 8 | } |
| 9 | |
| 10 | get comment() { |
| 11 | return $( '#pagehistory .comment' ); |
| 12 | } |
| 13 | |
| 14 | async open( title ) { |
| 15 | return super.openTitle( title, { action: 'history' } ); |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | module.exports = new HistoryPage(); |