Skip to content

LG-13497: Fix Session Logout Message#10873

Merged
mdiarra3 merged 11 commits intomainfrom
LG-13497-fix-session-logout-langauge
Jul 3, 2024
Merged

LG-13497: Fix Session Logout Message#10873
mdiarra3 merged 11 commits intomainfrom
LG-13497-fix-session-logout-langauge

Conversation

@mdiarra3
Copy link
Contributor

🎫 Ticket

Link to the relevant ticket:
LG-13497

🛠 Summary of changes

Updates the text for Session logout to include how long until user can try again.

👀 Screenshots

Screenshot 2024-06-26 at 10 24 25 AM

…ow long they have until they can try to enter password in again
@mdiarra3 mdiarra3 requested a review from a team June 26, 2024 14:52
@mdiarra3 mdiarra3 requested review from aduth and jmdembe June 27, 2024 13:19
Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tried testing this locally and hit an error after being locked out:

Screenshot 2024-06-27 at 9 32 19 AM

@mdiarra3 mdiarra3 requested a review from aduth July 2, 2024 13:33
Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still seeing the error message from my comment at #10873 (review). I think the suggested changes to the spec will surface the same error, to the point of the real code for stubbed methods not working as expected.

Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick on naming, but LGTM otherwise 👍

expect(page).to have_content(error_message)
expect(page).to have_current_path(new_user_session_path)
end
locked_at = Time.zone.at(page.get_rack_session['max_bad_passwords_at'])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice that you found a way to get at the session from the feature specs 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea it was a little annoying because calling that changes page. So I had to call a visit afterwards. railsware/rack_session_access#10 Very weird

@mdiarra3 mdiarra3 merged commit 65d049d into main Jul 3, 2024
@mdiarra3 mdiarra3 deleted the LG-13497-fix-session-logout-langauge branch July 3, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants