From c747b2e60c6c4b22866e0ff8c3b4c333144ecc97 Mon Sep 17 00:00:00 2001 From: David Cook Date: Thu, 30 May 2024 14:16:16 +1000 Subject: [PATCH] Remove unused code We don't use poltergeist, and it just works fine now. --- spec/system/admin/enterprises_spec.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/spec/system/admin/enterprises_spec.rb b/spec/system/admin/enterprises_spec.rb index c3515302266..68132587f2f 100644 --- a/spec/system/admin/enterprises_spec.rb +++ b/spec/system/admin/enterprises_spec.rb @@ -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!') @@ -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!')