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:
Diffstat (limited to 'plugins/Login/tests/UI/Decline_spec.js')
-rw-r--r--plugins/Login/tests/UI/Decline_spec.js18
1 files changed, 12 insertions, 6 deletions
diff --git a/plugins/Login/tests/UI/Decline_spec.js b/plugins/Login/tests/UI/Decline_spec.js
index b2b6893784..515a44a6a3 100644
--- a/plugins/Login/tests/UI/Decline_spec.js
+++ b/plugins/Login/tests/UI/Decline_spec.js
@@ -1,7 +1,7 @@
/*!
* Matomo - free/libre analytics platform
*
- * login & password reset screenshot tests.
+ * Decline invitation UI tests
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
@@ -10,16 +10,22 @@
describe('Decline', function () {
this.timeout(0);
this.fixture = 'Piwik\\Plugins\\Login\\tests\\Fixtures\\PendingUsers';
+ this.optionsOverride = {
+ 'persist-fixture-data': false
+ };
var pendingUserUrl = '?module=Login&action=declineInvitation&token=13cb9dcef6cc70b02a640cee30dc8ce9';
-
-
it('should display decline invite page', async function () {
await page.goto(pendingUserUrl);
expect(await page.screenshot({ fullPage: true })).to.matchImage('default');
});
-
-
-}); \ No newline at end of file
+ it('should display decline success page', async function () {
+ await page.evaluate(function(){
+ $('#login_form_submit').click();
+ });
+ await page.waitForNetworkIdle();
+ expect(await page.screenshot({ fullPage: true })).to.matchImage('success');
+ });
+});