[ARVADOS] updated: 93768ec1fae2054e22d2b7a290ae7f820b8ff77a

git at public.curoverse.com git at public.curoverse.com
Fri Nov 21 16:50:34 EST 2014


Summary of changes:
 apps/workbench/test/integration/projects_test.rb | 37 ++++++++++--------------
 1 file changed, 16 insertions(+), 21 deletions(-)

       via  93768ec1fae2054e22d2b7a290ae7f820b8ff77a (commit)
      from  8fc4de54ff2845d3886130cfae33a0e47894a011 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 93768ec1fae2054e22d2b7a290ae7f820b8ff77a
Author: radhika <radhika at curoverse.com>
Date:   Fri Nov 21 16:42:05 2014 -0500

    4339: config will be reset after each test, so no need to reset it explicitly. also, use assert_selector instead of assert has_link?

diff --git a/apps/workbench/test/integration/projects_test.rb b/apps/workbench/test/integration/projects_test.rb
index 2b490ce..e210068 100644
--- a/apps/workbench/test/integration/projects_test.rb
+++ b/apps/workbench/test/integration/projects_test.rb
@@ -641,28 +641,23 @@ class ProjectsTest < ActionDispatch::IntegrationTest
   test "error while loading tab" do
     original_arvados_v1_base = Rails.configuration.arvados_v1_base
 
-    begin
-      visit page_with_token 'active', '/projects/' + api_fixture('groups')['aproject']['uuid']
-
-      # Point to a bad api server url to generate error
-      Rails.configuration.arvados_v1_base = "https://[100::f]:1/"
-      click_link 'Other objects'
-      within '#Other_objects' do
-        # Error
-        assert page.has_link?('Reload tab', 'Did not find Reload tab button')
-
-        # Now point back to the orig api server and reload tab
-        Rails.configuration.arvados_v1_base = original_arvados_v1_base
-        click_link 'Reload tab'
-        wait_for_ajax
-        assert page.has_no_link?('Reload tab', 'Found unexpected Reload tab button')
-        assert page.has_button?('Selection...', 'Did not find Selection... button')
-        within '.selection-action-container' do
-          assert_selector 'tr[data-kind="arvados#trait"]'
-        end
-      end
-    ensure
+    visit page_with_token 'active', '/projects/' + api_fixture('groups')['aproject']['uuid']
+
+    # Point to a bad api server url to generate error
+    Rails.configuration.arvados_v1_base = "https://[100::f]:1/"
+    click_link 'Other objects'
+    within '#Other_objects' do
+      # Error
+      assert_selector('a', text: 'Reload tab')
+
+      # Now point back to the orig api server and reload tab
       Rails.configuration.arvados_v1_base = original_arvados_v1_base
+      click_link 'Reload tab'
+      assert_no_selector('a', text: 'Reload tab')
+      assert_selector('button', text: 'Selection...')
+      within '.selection-action-container' do
+        assert_selector 'tr[data-kind="arvados#trait"]'
+      end
     end
   end
 

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list