1 # frozen_string_literal: true
 
   3 require "application_system_test_case"
 
   5 class AccountRenameTest < ApplicationSystemTestCase
 
   6   test "renaming to invalid name shouldn't alter user button" do
 
   7     user = create(:user, :display_name => "Valid User")
 
  12     assert_button "Valid User"
 
  13     assert_field "Display Name", :with => "Valid User"
 
  15     fill_in "Display Name", :with => "x"
 
  16     click_on "Save Changes"
 
  18     assert_button "Valid User"
 
  19     assert_field "Display Name", :with => "x"