increase timeouts so the tests dont timeout on build server

This commit is contained in:
Bruno Windels 2018-08-23 00:27:30 +02:00
parent 1e0baa823d
commit fd67ace078
8 changed files with 16 additions and 16 deletions

View file

@ -148,7 +148,7 @@ module.exports = class RiotSession {
return this.page.$(selector);
}
waitAndQuery(selector, timeout = 500) {
waitAndQuery(selector, timeout = 5000) {
return this.page.waitForSelector(selector, {visible: true, timeout});
}
@ -156,12 +156,12 @@ module.exports = class RiotSession {
return this.page.$$(selector);
}
async waitAndQueryAll(selector, timeout = 500) {
async waitAndQueryAll(selector, timeout = 5000) {
await this.waitAndQuery(selector, timeout);
return await this.queryAll(selector);
}
waitForNewPage(timeout = 500) {
waitForNewPage(timeout = 5000) {
return new Promise((resolve, reject) => {
const timeoutHandle = setTimeout(() => {
this.browser.removeEventListener('targetcreated', callback);