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/Actions | |
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/Actions')
15 files changed, 33 insertions, 32 deletions
diff --git a/plugins/Actions/tests/UI/ActionsDataTable_spec.js b/plugins/Actions/tests/UI/ActionsDataTable_spec.js index 97d54c5a27..927ea0b354 100644 --- a/plugins/Actions/tests/UI/ActionsDataTable_spec.js +++ b/plugins/Actions/tests/UI/ActionsDataTable_spec.js @@ -32,7 +32,7 @@ describe("ActionsDataTable", function () { await page.mouse.move(-10, -10); await page.waitForNetworkIdle(); - await page.waitFor(250); // rendering + await page.waitForTimeout(250); // rendering expect(await page.screenshot({ fullPage: true })).to.matchImage('subtables_loaded'); }); @@ -41,7 +41,7 @@ describe("ActionsDataTable", function () { await page.click('.dropdownConfigureIcon'); await page.mouse.move(-10, -10); const element = await page.$('.tableConfiguration'); - await page.waitFor(250); // rendering + await page.waitForTimeout(250); // rendering expect(await element.screenshot()).to.matchImage('configuration_options'); }); @@ -77,6 +77,7 @@ describe("ActionsDataTable", function () { }); it("should generate a proper title for the visitor log segmented by the current row", async function() { + await page.mouse.move(-10, -10); const row = 'tr:contains("thankyou") '; const first = await page.jQuery(row + 'td.column:first'); await first.hover(); @@ -100,14 +101,14 @@ describe("ActionsDataTable", function () { await page.click('.ui-widget .ui-dialog-titlebar-close'); const elem = await page.jQuery('tr:contains("thankyou") td.column:eq(2)'); await elem.hover(); - await page.waitFor(100); + await page.waitForTimeout(100); expect(await page.screenshot({ fullPage: true })).to.matchImage('unique_pageview_percentages'); }); it("should show the search when clicking on the search icon", async function() { await page.click('.dataTableAction.searchAction'); await page.mouse.move(-10, -10); - await page.waitFor(500); + await page.waitForTimeout(500); expect(await page.screenshot({ fullPage: true })).to.matchImage('search_visible'); }); diff --git a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_auto_expand.png b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_auto_expand.png index 2f5974dd40..c621596a24 100644 --- a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_auto_expand.png +++ b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_auto_expand.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4a2e33653941467df83ccc1b7c5169b3b5c2cd6dd2fed001fc6856e95486d45f -size 389213 +oid sha256:943efef6a111645bba99408ba8816c7fb2e9ecd1063dfd0c1637f73a925fac81 +size 390107 diff --git a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_column_sorted.png b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_column_sorted.png index 905eb18e12..c2204eafed 100644 --- a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_column_sorted.png +++ b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_column_sorted.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c74c99414e935ba4de637ba8c72f6ba00e3da4d5bf7823c8e45ceb22a9bd2d05 -size 364044 +oid sha256:bf88c02a14c5de403939674beca872b1f13b05e0d0deec24b39daa6436cff2f6 +size 363615 diff --git a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_exclude_low_population.png b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_exclude_low_population.png index 01ce3704fb..7f729a68ac 100644 --- a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_exclude_low_population.png +++ b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_exclude_low_population.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7b2d07948a40d582b2d4b24f62b572d63147d51707f19075c3aa4cbbf78435ac -size 70301 +oid sha256:b260e5f90a4499cc9b063eba4cfe91647b79d14b90dc485457f0100911b5f407 +size 70885 diff --git a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_flattened.png b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_flattened.png index e2249a8a91..da3003396f 100644 --- a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_flattened.png +++ b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_flattened.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:be56bbd7fb1ea9cc83fa730d62d44b60aa95f8a5f747b4b3a39198e3b1f046bd -size 472673 +oid sha256:3c8be898a1e002b1996e5c38ccb567fda47535f7eefe498be0232a70bec7613c +size 466574 diff --git a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_initial.png b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_initial.png index de87bfc468..3a3b481f1c 100644 --- a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_initial.png +++ b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_initial.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:587b0818c65f965018b541098049a9314fa3b16dd8e98131ba433f3296ee1e53 -size 363592 +oid sha256:91becfb0f5f7248177de3b6b67031ed4b1bda81444934aed484b4ca5c52ca05d +size 363443 diff --git a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_pageview_percentages.png b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_pageview_percentages.png index 54429cb145..69458ca509 100644 --- a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_pageview_percentages.png +++ b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_pageview_percentages.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a4fb372053d8e8165b7c2fc16f5c9aad4fb4932ec1995c6f89890f0df322ba53 -size 59044 +oid sha256:a5b865302ec248e7543b088de9d247e92f3ad62c693079922690071faae00f53 +size 60606 diff --git a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_search.png b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_search.png index a390215f7d..9b366cda08 100644 --- a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_search.png +++ b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_search.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:84aa7e78abe2ca4bda44439eac489cbc89e9fca3057eb9ba43996d48c83ca3a3 -size 71162 +oid sha256:3bb6510f04c528d103db45e9f27ff49d12e0edfb60ebbebe56cd471ef51ce4ae +size 73526 diff --git a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_search_closed.png b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_search_closed.png index 7b154d056d..dd959ebf2f 100644 --- a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_search_closed.png +++ b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_search_closed.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:830fb714b7f3b133c79284c43c18ed233ed4b4e7247e698d7f9927f41404e5a6 -size 51559 +oid sha256:0214c0907c223d219ba6230e1ad23d65c44c8af59f5d17102979d07482961cb8 +size 53377 diff --git a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_search_visible.png b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_search_visible.png index 1900ebb4ca..b9bc676535 100644 --- a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_search_visible.png +++ b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_search_visible.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1b903108f502f76fae4b852ca9f9816e9488509e8e9e262e7496ab4cf91b2349 -size 56710 +oid sha256:12a5c28c5dcdfaa3198dfd3ebd626caea03da7a23954028bd447f12442565611 +size 62507 diff --git a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_segmented_visitor_log.png b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_segmented_visitor_log.png index 64b8952690..cd8e55ae87 100644 --- a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_segmented_visitor_log.png +++ b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_segmented_visitor_log.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b78b9de5fd88065f15184c8f994c140c1a0cc2a5e09a086d71be965503a076a0 -size 377619 +oid sha256:924ae218a7fd6cb96012cf4b970cca14304949ca242eea9381a203f8d96a3056 +size 377602 diff --git a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_segmented_visitor_log_hover.png b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_segmented_visitor_log_hover.png index be3cfd436f..cc50053822 100644 --- a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_segmented_visitor_log_hover.png +++ b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_segmented_visitor_log_hover.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8bba08d576cf0d1d0854039942065bcdbba420a2d351236f614dad47e3e9732e -size 63783 +oid sha256:cecbdebfc18409f6dabaad7411f581b3e315343be10373b8e432a8e0548358fc +size 67984 diff --git a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_subtables_loaded.png b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_subtables_loaded.png index c901e9734d..8bb3ecb49a 100644 --- a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_subtables_loaded.png +++ b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_subtables_loaded.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b79b18faee2bc3ee3a43452b38b9eba5c92e535d88b11d0c13a6ac8bc17ff6ac -size 379373 +oid sha256:71e3e2238b43afca2a5b7fd52709871e13e174b853be160097282bd426f4a8d6 +size 379466 diff --git a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_unflattened.png b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_unflattened.png index 7b154d056d..dd959ebf2f 100644 --- a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_unflattened.png +++ b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_unflattened.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:830fb714b7f3b133c79284c43c18ed233ed4b4e7247e698d7f9927f41404e5a6 -size 51559 +oid sha256:0214c0907c223d219ba6230e1ad23d65c44c8af59f5d17102979d07482961cb8 +size 53377 diff --git a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_unique_pageview_percentages.png b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_unique_pageview_percentages.png index 54429cb145..bd80dfbca1 100644 --- a/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_unique_pageview_percentages.png +++ b/plugins/Actions/tests/UI/expected-screenshots/ActionsDataTable_unique_pageview_percentages.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a4fb372053d8e8165b7c2fc16f5c9aad4fb4932ec1995c6f89890f0df322ba53 -size 59044 +oid sha256:d85c80162da86999958ea5d891663788c0da334beb8a111d18811567155a855c +size 64592 |