[ARVADOS] updated: 8fc4de54ff2845d3886130cfae33a0e47894a011

git at public.curoverse.com git at public.curoverse.com
Fri Nov 21 16:07:10 EST 2014


Summary of changes:
 apps/workbench/test/integration/projects_test.rb | 28 ++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

       via  8fc4de54ff2845d3886130cfae33a0e47894a011 (commit)
      from  ddaad003304ec76d7ebd124389fc41f1a612c997 (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 8fc4de54ff2845d3886130cfae33a0e47894a011
Author: radhika <radhika at curoverse.com>
Date:   Fri Nov 21 16:06:44 2014 -0500

    4339: add test for "error while loading tab"

diff --git a/apps/workbench/test/integration/projects_test.rb b/apps/workbench/test/integration/projects_test.rb
index cc60c69..2b490ce 100644
--- a/apps/workbench/test/integration/projects_test.rb
+++ b/apps/workbench/test/integration/projects_test.rb
@@ -638,4 +638,32 @@ class ProjectsTest < ActionDispatch::IntegrationTest
     end
   end
 
+  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
+      Rails.configuration.arvados_v1_base = original_arvados_v1_base
+    end
+  end
+
 end

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list