Use methods from SystemHelpers
more consistently (#33973)
This commit is contained in:
parent
5fa034fe68
commit
551339401d
15 changed files with 21 additions and 21 deletions
|
@ -117,7 +117,7 @@ RSpec.describe 'Admin::Announcements' do
|
|||
end
|
||||
|
||||
def text_label
|
||||
I18n.t('simple_form.labels.announcement.text')
|
||||
form_label('announcement.text')
|
||||
end
|
||||
|
||||
def admin_user
|
||||
|
|
|
@ -57,7 +57,7 @@ RSpec.describe 'Admin Invites' do
|
|||
end
|
||||
|
||||
def max_use_field
|
||||
I18n.t('simple_form.labels.defaults.max_uses')
|
||||
form_label('defaults.max_uses')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -65,7 +65,7 @@ RSpec.describe 'Admin Rules' do
|
|||
end
|
||||
|
||||
def submit_form
|
||||
click_on I18n.t('generic.save_changes')
|
||||
click_on(submit_button)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ RSpec.describe 'Admin Tags' do
|
|||
end
|
||||
|
||||
def display_name_field
|
||||
I18n.t('simple_form.labels.defaults.display_name')
|
||||
form_label('defaults.display_name')
|
||||
end
|
||||
|
||||
def match_error_text
|
||||
|
|
|
@ -61,7 +61,7 @@ RSpec.describe 'Admin Warning Presets' do
|
|||
end
|
||||
|
||||
def submit_form
|
||||
click_on I18n.t('generic.save_changes')
|
||||
click_on(submit_button)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ RSpec.describe 'Admin Webhooks' do
|
|||
end
|
||||
|
||||
def submit_form
|
||||
click_on I18n.t('generic.save_changes')
|
||||
click_on(submit_button)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue