Skip to content
Snippets Groups Projects
Commit b83e16e4 authored by Pedro Beschorner Marin's avatar Pedro Beschorner Marin
Browse files

Open user list before chat and user tests

parent fd715f3a
No related branches found
No related tags found
No related merge requests found
const e = require('./elements');
const ce = require('../core/elements');
async function openChat(test) {
await test.click(e.chatButton);
// TODO: Check this if it's open before click
await test.click(ce.userList);
await test.click(e.chatButton,true);
await test.waitForSelector(e.chatBox);
await test.waitForSelector(e.chatMessages);
}
......
const Page = require('../core/page');
const e = require('./elements');
const ce = require('../core/elements');
const util = require('./util');
class Status extends Page {
......@@ -8,6 +9,9 @@ class Status extends Page {
}
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment