[UIMPROF-3] Create Change Password page Created: 24/May/18  Updated: 09/Jun/23  Resolved: 06/Aug/18

Status: Closed
Project: ui-myprofile
Components: None
Affects versions: None
Fix versions: 0.2.0

Type: Story Priority: P3
Reporter: Khalilah Gambrell Assignee: Khalilah Gambrell
Resolution: Done Votes: 0
Labels: epam-folijet, no-epic-needed
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original estimate: Not Specified

Attachments: PNG File screenshot-1.png     PNG File screenshot-2.png     PNG File screenshot-3.png     PNG File screenshot-4.png    
Issue links:
Cloners
is cloned by UIMPROF-2 Create My profile landing page Closed
Relates
relates to MODLOGIN-31 Extend mod-login with the ability to ... Closed
relates to STCOR-236 Extend the `stripesShape` prop-types ... Closed
relates to UIMPROF-7 Verify fresh mod-login changes to cha... Closed
relates to UXPROD-39 Local password management Closed
relates to STRIPES-541 Create ui-myprofile module Closed
relates to UIMPROF-9 The confirmation modal about unsaved ... Closed
relates to UIMPROF-10 Write UI tests for Change password page Closed
Sub-tasks:
Key
Summary
Type
Status
Assignee
UIMPROF-7 Verify fresh mod-login changes to cha... Sub-task Closed Igor Gorchakov  
Sprint: EPAM Sprint 1, EPAM Sprint 2
Story Points: 8
Development Team: Folijet

 Description   

As a librarian
I want to be able to change my Folio password
Because the one I have is to hard to remember or I have security concerns

General Requirements

  • Change password page is only available once the user logs into Folio
  • To view and edit this page, a user must have logged in with a Folio username and password (ssoenabled = false).
  • Change password only changes the user's local password NOT his/her SSO password.
  • To change a password, user must enter a.) his/her current password, b.) new password, c.) confirm new password

Requirements

First Pane header: Settings
Second Pane header: My profile
Second paneset: display the link [Change password] selected
Third pane header: Change password
Third paneset:

  • Display three fields:
    • Current password : user enters his/her current FOLIO local password
    • New password: user enters his/her new FOLIO local password
    • Confirm password: user enters his/her new FOLIO local password again
  • Show/Hide password toggle
    • Hiding password will be the default
    • If user clicks Show password then passwords will be unmasked and visible to user
  • Save button (only enable the button when a value has changed in one of the three fields)

Screenshot:

Backend module dependency

  • Use mod-login backend module to support Change password functionality (there is a dependency MODLOGIN-31 Closed )

URL structure

/settings/myprofile/password

Toast Notification Message

  • If user saves the changed password then a display the following message on the bottom righthand corner of the page: The FOLIO password has been successfully changed for <<User Last Name>> , <<User First Name>>

Acceptance Testing

Given I logged into Folio with my Folio local credentials (sso enabled = false)
Then I should be able to edit/view the Change password page

Given I logged into Folio with my SSO credentials (sso enabled = true)
Then I should not be able to view the Change password page

Given a user wants to change his/her password
AND ssoenabled=false
When s/he clicks Change password under Settings > My profile
Then s/he should be taken to the Change password page

Given I have accessed the Change password page
AND enter my current password
AND I enter a new password
AND my confirmed new password matches
WHEN I save the change password
Then I should remain on the Change password page
AND see a toast notification that the Password was successfully changed.
*See screenshot: *

AND the current/new/confirm passwords should be reset (or cleared)

Given I have accessed the Change password page
AND I enter a value in any of the three fields
WHEN I move away from this page
THEN display the Unsaved Changes Modal
AND modal behavior should be no different from current behavior.

Given I did not enter a value in one of the following fields current password/new password/confirm password field
When I click Save
Then display a message below the field(s) without a value [Please enter a value.]
AND user should not be able to save until valid password values are entered.

Given I did not enter the same values for new password and confirm password
When I click Save
Then display the following message below the confirm password field [New and confirm password does not match. Retype your password.]
AND user should not be able to save until valid password values are entered.

Given I entered an incorrect value for current password
When I click Save
Then display the following message [Incorrect password. Retype your password.]
IF I click the [Hide password] link
THEN all passwords entered will be masked

IF I click the [Show password] link
THEN all passwords entered will be visible in plain text

Some stripes components to use



 Comments   
Comment by Khalilah Gambrell [ 24/May/18 ]

Cate Boerema and Former user, note user story is in draft. Still working on it.

Comment by Viktor Soroka [ 01/Aug/18 ]

Khalilah Gambrell I have a question about the following requirement:

Given I have accessed the Change password page
AND enter my current password
AND I enter a new password
AND my confirmed new password matches
WHEN I save the change password
Then I should remain on the Change password page
AND see a toast notification that the Password was successfully changed.

Should we reset the form after the successful change of the password?

Comment by Viktor Soroka [ 01/Aug/18 ]

Khalilah Gambrell According to the conversation in slack, could you please add the requirement about the server error upon form submit.

Comment by Khalilah Gambrell [ 01/Aug/18 ]

Viktor Soroka, regarding server timeout error. I will create it as another user story.

  • Yes we should reset the form when password has successfully changed. Will update this user story.
Generated at Thu Feb 08 22:34:01 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.