Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2022-08-17 18:38:44 +0300
committerGitHub <noreply@github.com>2022-08-17 18:38:44 +0300
commit6a97934c0bf01e1bc2d25b799cb9847c08410229 (patch)
tree511076cdd6b83e151c486e13ffbe4805c1d707e2
parent3b781619cfab118dab72ff5379768ff00eff0391 (diff)
fix randomly failing ui tests (#19640)
-rw-r--r--plugins/UsersManager/tests/UI/UsersManager_spec.js7
-rw-r--r--plugins/UsersManager/tests/UI/expected-screenshots/UsersManager_resend_success.png4
2 files changed, 7 insertions, 4 deletions
diff --git a/plugins/UsersManager/tests/UI/UsersManager_spec.js b/plugins/UsersManager/tests/UI/UsersManager_spec.js
index 52ff9e2246..75a0e9a697 100644
--- a/plugins/UsersManager/tests/UI/UsersManager_spec.js
+++ b/plugins/UsersManager/tests/UI/UsersManager_spec.js
@@ -234,7 +234,10 @@ describe("UsersManager", function () {
const modal = await page.waitForSelector('.modal.open', { visible: true });
await page.focus('.modal.open #currentUserPassword');
await page.waitForTimeout(250);
- expect(await modal.screenshot()).to.matchImage('invite_confirm');
+ expect(await modal.screenshot()).to.matchImage({
+ imageName: 'invite_confirm',
+ comparisonThreshold: 0.025
+ });
});
it('should show the edit user form when user has been invited', async function () {
@@ -564,7 +567,7 @@ describe("UsersManager", function () {
await (await page.jQuery('.resend-invite-confirm-modal .modal-close:not(.modal-no):visible')).click();
await page.waitForSelector('#notificationContainer .notification');
await page.waitForNetworkIdle();
- expect(await page.screenshotSelector('.usersManager, #notificationContainer .notification')).to.matchImage('resend_success');
+ expect(await page.screenshotSelector('#notificationContainer .notification')).to.matchImage('resend_success');
});
diff --git a/plugins/UsersManager/tests/UI/expected-screenshots/UsersManager_resend_success.png b/plugins/UsersManager/tests/UI/expected-screenshots/UsersManager_resend_success.png
index 624c0abd58..9fcda34574 100644
--- a/plugins/UsersManager/tests/UI/expected-screenshots/UsersManager_resend_success.png
+++ b/plugins/UsersManager/tests/UI/expected-screenshots/UsersManager_resend_success.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:0956675e38a3ce34f49164629ad353014bf36964c5ec286f673cb74a0bf412fe
-size 187399
+oid sha256:af4f5be1fc93e7cd36bc800dba847a9b7ef401507d3c0560c7fe2284954bcb17
+size 6769