39 lines
886 B
JavaScript
39 lines
886 B
JavaScript
const Page = require('../core/page');
|
|
const e = require('./elements');
|
|
const util = require('./util');
|
|
|
|
class Status extends Page {
|
|
constructor() {
|
|
super('user-status');
|
|
}
|
|
|
|
async test() {
|
|
// TODO: Check this if it's open before click
|
|
// await this.click(ce.userList);
|
|
|
|
await this.screenshot(true);
|
|
const status0 = await util.getTestElements(this);
|
|
|
|
await util.setStatus(this, e.applaud);
|
|
|
|
await this.screenshot(true);
|
|
const status1 = await util.getTestElements(this);
|
|
|
|
await util.setStatus(this, e.away);
|
|
|
|
await this.screenshot(true);
|
|
const status2 = await util.getTestElements(this);
|
|
|
|
await this.click(e.firstUser);
|
|
await this.click(e.clearStatus, true);
|
|
|
|
await this.screenshot(true);
|
|
const status3 = await util.getTestElements(this);
|
|
|
|
// TODO: Check test
|
|
return true;
|
|
}
|
|
}
|
|
|
|
module.exports = exports = Status;
|