openstreetmap-website/test/system/user_suspension_test.rb
Andy Allan 487bba4088 Use 'My Account' for account pages
It's hard to make a distinction between 'Preferences' and 'Settings' in some languages,
and many other sites use the term 'Account' for things like changing email.
2025-02-15 17:06:40 +00:00

15 lines
397 B
Ruby

require "application_system_test_case"
class UserSuspensionTest < ApplicationSystemTestCase
test "User shown a message when suspended mid-session" do
user = create(:user)
sign_in_as(user)
visit edit_account_path
assert_content "My Account"
user.suspend!
visit edit_account_path
assert_content "This decision will be reviewed by an administrator shortly"
end
end