From: Eduardo San Martin Morote Date: Mon, 1 Mar 2021 14:53:26 +0000 (+0100) Subject: test(e2e): larger timeout for BS X-Git-Tag: v4.0.5~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a678468e16526367bcb144f97222d51e5d1a550;p=thirdparty%2Fvuejs%2Frouter.git test(e2e): larger timeout for BS --- diff --git a/e2e/specs/encoding.js b/e2e/specs/encoding.js index 0ef1162f..a01a8200 100644 --- a/e2e/specs/encoding.js +++ b/e2e/specs/encoding.js @@ -4,6 +4,8 @@ const baseURL = 'http://localhost:8080/encoding' const rawText = ' !"#$&\'()*+,/:;<=>?@[]^`{|}' +const TIMEOUT = 2000 + module.exports = { ...bsStatus(), @@ -14,7 +16,7 @@ module.exports = { browser .url(baseURL) .assert.urlEquals(baseURL + '/') - .waitForElementPresent('#app > *', 1000) + .waitForElementPresent('#app > *', TIMEOUT) .click('li:nth-child(3) a') .assert.urlEquals(baseURL + '/documents/%E2%82%ACuro') @@ -33,7 +35,9 @@ module.exports = { // link by the browser with minimal encoding // browsers will encode it differently but the resulted decoded values // should be consistent across browsers - browser.click('li:nth-child(7) a').waitForElementPresent('#app > *', 1000) + browser + .click('li:nth-child(7) a') + .waitForElementPresent('#app > *', TIMEOUT) browser.expect.element('#p-id').text.equals(`"${rawText}"`) browser.expect .element('#query') @@ -43,14 +47,14 @@ module.exports = { // check initial visit browser .url(baseURL + '/documents/%E2%82%ACuro') - .waitForElementPresent('#app > *', 1000) + .waitForElementPresent('#app > *', TIMEOUT) // .assert.containsText('#fullPath', '/documents/%E2%82%ACuro') // .assert.containsText('#path', '/documents/%E2%82%ACuro') .assert.containsText('#p-id', '"€uro"') // TODO: invalid in safari, tests on those where this is valid // .url(baseURL + '/unicode/€uro') - // .waitForElementPresent('#app > *', 1000) + // .waitForElementPresent('#app > *', TIMEOUT) // navigation to unencoded value // depending on the browser the value will be encoded or not // .assert.containsText('#params', JSON.stringify({ id: '€uro' }, null, 2))