[ARVADOS] updated: 3599db938d31d308db053945fa55ad5195c1be52

git at public.curoverse.com git at public.curoverse.com
Thu Aug 13 11:44:23 EDT 2015


Summary of changes:
 apps/workbench/test/integration/anonymous_access_test.rb |  2 +-
 apps/workbench/test/integration/projects_test.rb         | 12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

       via  3599db938d31d308db053945fa55ad5195c1be52 (commit)
      from  f369f469ef9417579b46402d9e95dbf4c86638e7 (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 3599db938d31d308db053945fa55ad5195c1be52
Author: Manoj <jonam33 at gmail.com>
Date:   Thu Aug 13 11:43:41 2015 -0400

    6640: Added test to test project menu, checked link for browse public projects.

diff --git a/apps/workbench/test/integration/anonymous_access_test.rb b/apps/workbench/test/integration/anonymous_access_test.rb
index e1c8359..0fd5b59 100644
--- a/apps/workbench/test/integration/anonymous_access_test.rb
+++ b/apps/workbench/test/integration/anonymous_access_test.rb
@@ -20,7 +20,7 @@ class AnonymousAccessTest < ActionDispatch::IntegrationTest
         assert_selector 'a', text: 'Projects'
         page.find("#projects-menu").click
         assert_selector 'a', text: 'Create a new project'
-        assert_selector 'a', text: 'Browse public projects'
+        assert_selector "a[href=\"/projects/public\"]", text: 'Browse public projects'
         assert page.has_text?('My projects'), 'Not found text - My projects'
       else
         assert_text 'indicate that you have read and accepted the user agreement'
diff --git a/apps/workbench/test/integration/projects_test.rb b/apps/workbench/test/integration/projects_test.rb
index 4401a6f..bb6ec96 100644
--- a/apps/workbench/test/integration/projects_test.rb
+++ b/apps/workbench/test/integration/projects_test.rb
@@ -471,6 +471,18 @@ class ProjectsTest < ActionDispatch::IntegrationTest
     end
   end
 
+  test "project menu shows all projects owned" do
+    visit page_with_token("user1_with_load")
+    find("#projects-menu").click
+    # Verify that expected number of projects are found
+    found_items = page.all('li')
+    found_count = found_items.count
+    assert_equal(true, found_count>=211,
+      "Found too few items. Expected at least 200 and found #{found_count}")
+    assert_equal(true, found_count<=220,
+      "Found too many items. Expected at most 210 and found #{found_count}")
+  end
+
   [
     ['project_with_10_collections', 10],
     ['project_with_201_collections', 201], # two pages of data

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list