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
path: root/tests
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2016-03-07 00:11:06 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2016-03-07 00:11:06 +0300
commitaf591ccb591091a8fd3e850fa09a5dceea799620 (patch)
treec90488d7e5c6670cbbf90c8bd6d05b1dba087da0 /tests
parent05e8e1f35f53d4bb51f1a0d3151c879d0126804a (diff)
parent072d4c2e46523d84d99c7769097d70e06faa65d4 (diff)
Merge pull request #9880 from piwik/fixpwresetform
Fix behaviour of reset password form on error
Diffstat (limited to 'tests')
-rw-r--r--tests/UI/specs/Login_spec.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/UI/specs/Login_spec.js b/tests/UI/specs/Login_spec.js
index ed4ad31ba3..dc0fbb558a 100644
--- a/tests/UI/specs/Login_spec.js
+++ b/tests/UI/specs/Login_spec.js
@@ -60,6 +60,14 @@ describe("Login", function () {
}, done);
});
+ it("should show reset password form and error message on error", function (done) {
+ expect.screenshot("password_reset_error").to.be.capture(function (page) {
+ page.sendKeys("#reset_form_login", "superUserLogin");
+ page.sendKeys("#reset_form_password", "superUserPass2");
+ page.click("#reset_form_submit", 3000);
+ }, done);
+ });
+
it("should send email when password reset form submitted", function (done) {
expect.screenshot("password_reset").to.be.capture(function (page) {
page.sendKeys("#reset_form_login", "superUserLogin");