Move server rule creation form to its own page (#34637)

This commit is contained in:
Claire 2025-05-14 11:43:07 +02:00 committed by GitHub
parent c45ce549af
commit aa04efb92a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 27 additions and 16 deletions

View file

@ -26,6 +26,8 @@ RSpec.describe 'Admin Rules' do
it 'creates new record with valid attributes' do
visit admin_rules_path
click_on I18n.t('admin.rules.add_new')
# Invalid submission
fill_in 'rule_text', with: ''
expect { submit_form }