slightly less failing test suite but removing the annoying 404 failures

This commit is contained in:
2016-07-04 08:41:38 +02:00
parent 780332f6de
commit 1d52e78c65
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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