-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AO3-6308 fix user suspension end time (#4338)
* fix user suspension end time * please hound * date localization suggestion * avoid html in translation string * fix translation file issues * fix merge conflict part 2 * address linter * add unit test * make reset_blocked_html use different locale key * Update app/controllers/application_controller.rb Co-authored-by: Bilka <[email protected]> * Update app/controllers/application_controller.rb Co-authored-by: Bilka <[email protected]> * Update features/users/suspensions.feature Co-authored-by: Bilka <[email protected]> * Update features/users/suspensions.feature Co-authored-by: Bilka <[email protected]> --------- Co-authored-by: Bilka <[email protected]>
- Loading branch information
1 parent
493f91e
commit b5e71b6
Showing
4 changed files
with
47 additions
and
11 deletions.
There are no files selected for viewing
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
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
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
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,17 @@ | ||
Feature: Suspensions | ||
|
||
Scenario: Users suspended on 2024-01-11 before the unban threshold can see they will be unbanned on 2024-02-10 | ||
Given the user "mrparis" exists and is activated | ||
And it is currently 2024-01-11 01:00 AM | ||
And the user "mrparis" is suspended | ||
And I am logged in as "mrparis" | ||
And I go to the new work page | ||
Then I should see "suspended until Sat 10 Feb 2024" | ||
|
||
Scenario: Users suspended on 2024-01-11 after the unban threshold can see they will be unbanned on 2024-02-11 | ||
Given the user "mrparis" exists and is activated | ||
And it is currently 2024-01-11 08:00 PM | ||
And the user "mrparis" is suspended | ||
And I am logged in as "mrparis" | ||
And I go to the new work page | ||
Then I should see "suspended until Sun 11 Feb 2024" |