Skip to content

Commit

Permalink
Merge pull request #12630 from dacook/cleanup
Browse files Browse the repository at this point in the history
Remove unused spec code
  • Loading branch information
rioug authored Jul 2, 2024
2 parents 5bb4782 + c747b2e commit 7a741d9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions spec/system/admin/enterprises_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,6 @@
within("tbody#e_#{distributor1.id}") { click_link 'Settings' }

fill_in 'enterprise_name', with: 'Eaterprises'

# Because poltergist does not support form onchange event
# We need trigger the change manually
page.evaluate_script("angular.element(enterprise_form).scope().setFormDirty()")
click_button 'Update'

expect(flash_message).to eq('Enterprise "Eaterprises" has been successfully updated!')
Expand All @@ -441,10 +437,6 @@
within("tbody#e_#{distributor3.id}") { click_link 'Settings' }

fill_in 'enterprise_name', with: 'Eaterprises'

# Because poltergist does not support form onchange event
# We need trigger the change manually
page.evaluate_script("angular.element(enterprise_form).scope().setFormDirty()")
click_button 'Update'

expect(flash_message).to eq('Enterprise "Eaterprises" has been successfully updated!')
Expand Down

0 comments on commit 7a741d9

Please sign in to comment.