diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-09-01 16:37:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 16:37:38 +0300 |
commit | a3ee690ea3863ff16a828ac0afbc77243bb45f5b (patch) | |
tree | 77f3341e86608894b1020725700b348bbcd44567 /plugins/IntranetMeasurable | |
parent | ba1facfd1ecb4e618f3162aedbdb3170e9461e50 (diff) |
Use newer version of Puppeteer for UI tests (#17880)
* Use latest version of Puppeteer for UI tests
* use newer node on travis
* test
* use waitForTimeout / waitForSelector instead of waitFor
* Handle BC for removed waitFor method
* Updates expected UI test files
* update submodules
* improve/fix some UI tests
* Updates expected UI test files
* improve/fix some UI tests
* update url-parse dependency
* simplify some UI tests
* update screenshot
* avoid using merged assets that are broken
* fix expected compare exit code
* don't use merged assets for TwoFactorAuth UI tests
it seems due to too many requests to login, logout and other pages merging the CoreJS assets somehow fails, and results in returning an empty file. Even the reload fails to serve the correct content, so maybe the file, the content should be written to, is somehow locked. Disabling the merged assets seems to fix this issue for this tests. Locally the tests are also running correctly with merged assets.
* improve handling of automatic css / js reloading in UI tests
* increase timeouts of TwoFactorAuth UI tests
* fix 2fa ui test
* revert change
* update new screenshot
* updates UI screenshots
* submodule updates
Diffstat (limited to 'plugins/IntranetMeasurable')
-rw-r--r-- | plugins/IntranetMeasurable/tests/UI/IntranetMeasurable_spec.js | 4 | ||||
-rw-r--r-- | plugins/IntranetMeasurable/tests/UI/expected-screenshots/IntranetMeasurable_add_new_dialog.png | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/IntranetMeasurable/tests/UI/IntranetMeasurable_spec.js b/plugins/IntranetMeasurable/tests/UI/IntranetMeasurable_spec.js index 17357ab2ee..46063f9108 100644 --- a/plugins/IntranetMeasurable/tests/UI/IntranetMeasurable_spec.js +++ b/plugins/IntranetMeasurable/tests/UI/IntranetMeasurable_spec.js @@ -26,7 +26,7 @@ describe("IntranetMeasurable", function () { it("should show intranet selection", async function () { await page.goto(url); await (await page.jQuery('.SitesManager .addSite:first')).click(); - await page.waitFor(500); + await page.waitForTimeout(500); const elem = await page.$('.modal.open'); expect(await elem.screenshot()).to.matchImage('add_new_dialog'); @@ -35,7 +35,7 @@ describe("IntranetMeasurable", function () { it("should load intranet specific fields", async function () { await (await page.jQuery('.modal.open .btn:contains(Intranet)')).click(); await page.waitForNetworkIdle(); - await page.waitFor(250); + await page.waitForTimeout(250); await page.evaluate(function () { $('.form-help:contains(UTC time is)').hide(); diff --git a/plugins/IntranetMeasurable/tests/UI/expected-screenshots/IntranetMeasurable_add_new_dialog.png b/plugins/IntranetMeasurable/tests/UI/expected-screenshots/IntranetMeasurable_add_new_dialog.png index 3509f3fceb..cbfc4f027e 100644 --- a/plugins/IntranetMeasurable/tests/UI/expected-screenshots/IntranetMeasurable_add_new_dialog.png +++ b/plugins/IntranetMeasurable/tests/UI/expected-screenshots/IntranetMeasurable_add_new_dialog.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0f51b2683c2e1ab32986beb154bc519ad9b605050d3d08bc213fcb5ceaa4708e -size 8851 +oid sha256:bdfcc21b1beecf04a25776751532d54379a401cda39ade6989025064fe33f06c +size 8545 |