Skip to content

Commit

Permalink
Add regression test for #1635
Browse files Browse the repository at this point in the history
  • Loading branch information
jc-harrison committed Dec 2, 2019
1 parent 66b87d8 commit 8117a85
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions flowauth/frontend/cypress/integration/admin_edit_user.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

describe("User management", function() {
Cypress.Cookies.debug(true);

beforeEach(function() {
// Log in and navigate to user details screen
cy.login_admin();
cy.goto("/");
cy.get("#user_list").click();
});
it("Edit existing user password", function() {
cy.get("#new").click();
//Add new user with password
cy.get("#username").type("USER_TEST");
cy.get("#password").type("DUMMY_ORIGINAL_PASSWORD");
cy.contains("Save").click();
cy.get("#edit_3").click();
cy.get("#password").type("DUMMY_UPDATED_PASSWORD");
cy.contains("Save").click();
cy.request("/signout");
cy.request("POST", "/signin", {
username: "USER_TEST",
password: "DUMMY_UPDATED_PASSWORD"
});
});
});

0 comments on commit 8117a85

Please sign in to comment.