-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Base Email template path + new test for user create
- Loading branch information
Showing
3 changed files
with
34 additions
and
17 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
context("Admin User Password", () => { | ||
it("List System Users", () => { | ||
cy.loginAdmin("UserList.php"); | ||
cy.contains("Church Admin"); | ||
}); | ||
|
||
it("Admin Change password", () => { | ||
cy.loginAdmin("v2/user/95/changePassword"); | ||
cy.contains("Change Password: Judith Kennedy"); | ||
cy.get("#NewPassword1").type("new-user-password"); | ||
cy.get("#NewPassword2").type("new-user-password"); | ||
cy.get("form:nth-child(2)").submit(); | ||
cy.url().should("contains", "v2/user/95/changePassword"); | ||
cy.contains("Password Change Successful"); | ||
}); | ||
|
||
|
||
it("Create System Users", () => { | ||
cy.loginAdmin("UserList.php"); | ||
cy.contains("Peyton Ray").should('not.exist'); | ||
cy.visit("PersonView.php?PersonID=25"); | ||
cy.contains("Peyton Ray"); | ||
cy.contains("Edit User").should('not.exist'); | ||
cy.contains("Make User"); | ||
cy.visit('UserEditor.php?NewPersonID=25'); | ||
cy.contains("User Editor"); | ||
cy.get('.TextColumnWithBottomBorder > select').type('skin-yellow'); | ||
cy.get('tr:nth-child(14) .btn-primary').click(); | ||
cy.url().should('contains', 'UserList.php'); | ||
cy.contains("Peyton Ray"); | ||
|
||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters