[ARVADOS] created: 7910f3344a9d67e66d2fbbfaf030305717740cff

git at public.curoverse.com git at public.curoverse.com
Fri Nov 21 11:33:25 EST 2014


        at  7910f3344a9d67e66d2fbbfaf030305717740cff (commit)


commit 7910f3344a9d67e66d2fbbfaf030305717740cff
Author: radhika <radhika at curoverse.com>
Date:   Fri Nov 21 11:32:55 2014 -0500

    4641: use selenium driver and bigger page width.

diff --git a/apps/workbench/test/integration/projects_test.rb b/apps/workbench/test/integration/projects_test.rb
index 5da6153..b2a2671 100644
--- a/apps/workbench/test/integration/projects_test.rb
+++ b/apps/workbench/test/integration/projects_test.rb
@@ -4,12 +4,18 @@ require 'headless'
 
 class ProjectsTest < ActionDispatch::IntegrationTest
   setup do
-    Capybara.current_driver = Capybara.javascript_driver
+    headless = Headless.new
+    headless.start
+    Capybara.current_driver = :selenium
+
+    # project tests need bigger page size to be able to see all the buttons
+    Capybara.current_session.driver.browser.manage.window.resize_to(1280, 768)
   end
 
   test 'Check collection count for A Project in the tab pane titles' do
     project_uuid = api_fixture('groups')['aproject']['uuid']
     visit page_with_token 'active', '/projects/' + project_uuid
+    wait_for_ajax
     collection_count = page.all("[data-pk*='collection']").count
     assert_selector '#Data_collections-tab span', text: "(#{collection_count})"
   end
@@ -493,10 +499,6 @@ class ProjectsTest < ActionDispatch::IntegrationTest
                    item_list_parameter,
                    sorted = false,
                    sort_parameters = nil)
-    headless = Headless.new
-    headless.start
-    Capybara.current_driver = :selenium
-
     project_uuid = api_fixture('groups')[project_name]['uuid']
     visit page_with_token 'user1_with_load', '/projects/' + project_uuid
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list