slightly less failing test suite but removing the annoying 404 failures
This commit is contained in:
@@ -109,7 +109,7 @@ module SpecEmberHelpers
|
||||
ember_ready = page.evaluate_script('window.ember_ready')
|
||||
times += 1
|
||||
end
|
||||
raise "Ember is not loaded and should be" unless ember_ready
|
||||
raise "Ember is not loaded and should be. Current path is: #{page.current_path}" unless ember_ready
|
||||
blk.call
|
||||
end
|
||||
end
|
||||
|
||||
@@ -58,7 +58,7 @@ module Features
|
||||
end
|
||||
super(*args)
|
||||
if Capybara.current_driver == Capybara.javascript_driver
|
||||
if page.current_path != "/admin/employees/test_login"
|
||||
if %w[/user /supplier].any? { |path_prefix| page.current_path.starts_with? path_prefix }
|
||||
when_ember_is_ready { }
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user