Test if members joining while user is offline are received after returning online with LL enabled

This commit is contained in:
Bruno Windels 2018-09-14 12:44:01 +02:00
parent 6deb595fec
commit 16b2f09915
3 changed files with 33 additions and 5 deletions

View file

@ -173,6 +173,13 @@ module.exports = class RiotSession {
return delay(ms);
}
async setOffline(enabled) {
const description = enabled ? "offline" : "back online";
this.log.step(`goes ${description}`);
await this.page.setOfflineMode(enabled);
this.log.done();
}
close() {
return this.browser.close();
}