]> git.openstreetmap.org Git - rails.git/blob - test/system/account_rename_test.rb
Add frozen_string_literal comments to ruby files
[rails.git] / test / system / account_rename_test.rb
1 # frozen_string_literal: true
2
3 require "application_system_test_case"
4
5 class AccountRenameTest < ApplicationSystemTestCase
6   test "renaming to invalid name shouldn't alter user button" do
7     user = create(:user, :display_name => "Valid User")
8     sign_in_as(user)
9
10     visit account_path
11
12     assert_button "Valid User"
13     assert_field "Display Name", :with => "Valid User"
14
15     fill_in "Display Name", :with => "x"
16     click_on "Save Changes"
17
18     assert_button "Valid User"
19     assert_field "Display Name", :with => "x"
20   end
21 end