Browse Source

Maintenance: Stabilize object manager test (second try).

Martin Gruner 2 years ago
parent
commit
ebe61519fa
1 changed files with 6 additions and 2 deletions
  1. 6 2
      spec/system/system/object_manager_spec.rb

+ 6 - 2
spec/system/system/object_manager_spec.rb

@@ -717,7 +717,9 @@ RSpec.describe 'System > Objects', type: :system do
             # Update Database
             # Update Database
             click 'div.js-execute'
             click 'div.js-execute'
             wait.until do
             wait.until do
-              attribute['data_option'] && attribute['data_option']['customsort'] == 'on'
+              attribute &&
+                attribute['data_option'] &&
+                attribute['data_option']['customsort'] == 'on'
             end
             end
           end
           end
         end
         end
@@ -733,7 +735,9 @@ RSpec.describe 'System > Objects', type: :system do
             click 'div.js-execute'
             click 'div.js-execute'
 
 
             wait.until do
             wait.until do
-              attribute['data_option'] && attribute['data_option']['customsort'].nil?
+              attribute &&
+                attribute['data_option'] &&
+                attribute['data_option']['customsort'].nil?
             end
             end
           end
           end
         end
         end