From b35fa9d7e8133fb02a3a44dacf6b818b48de49f4 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Tue, 8 Oct 2024 16:08:11 -0400 Subject: [PATCH] Use helper method --- spec/system/settings/profiles_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/system/settings/profiles_spec.rb b/spec/system/settings/profiles_spec.rb index 497b0fe00d..73a5751141 100644 --- a/spec/system/settings/profiles_spec.rb +++ b/spec/system/settings/profiles_spec.rb @@ -20,7 +20,7 @@ RSpec.describe 'Settings profile page' do fill_in display_name_field, with: 'New name' attach_file avatar_field, Rails.root.join('spec', 'fixtures', 'files', 'avatar.gif') - expect { click_on I18n.t('generic.save_changes') } + expect { click_on submit_button } .to change { account.reload.display_name }.to('New name') .and(change { account.reload.avatar.instance.avatar_file_name }.from(nil).to(be_present)) expect(ActivityPub::UpdateDistributionWorker)