2018-11-23 03:15:52 +08:00
|
|
|
// Test: Cleaning a chat message
|
|
|
|
|
2018-11-23 20:55:16 +08:00
|
|
|
const Page = require('../core/page');
|
2018-11-23 03:15:52 +08:00
|
|
|
const e = require('./elements');
|
|
|
|
const util = require('./util');
|
|
|
|
|
|
|
|
class Save extends Page {
|
|
|
|
constructor() {
|
|
|
|
super('chat-save');
|
|
|
|
}
|
|
|
|
|
|
|
|
async test() {
|
|
|
|
await util.openChat(this);
|
|
|
|
|
|
|
|
await this.click(e.chatOptions);
|
|
|
|
await this.click(e.chatSave, true);
|
|
|
|
|
2018-11-23 20:55:16 +08:00
|
|
|
// TODO: Replace this with a download event listener
|
2018-11-23 03:15:52 +08:00
|
|
|
await this.screenshot(true);
|
|
|
|
await this.screenshot(true);
|
|
|
|
await this.screenshot(true);
|
|
|
|
|
2018-11-23 20:55:16 +08:00
|
|
|
// TODO: Check test
|
2018-11-23 03:15:52 +08:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = exports = Save;
|