[ARVADOS] updated: 60aa782479f0f97d880bddec1bb35a397f06707e
git at public.curoverse.com
git at public.curoverse.com
Wed Aug 19 15:14:27 EDT 2015
Summary of changes:
apps/workbench/test/integration/projects_test.rb | 22 ++++++++++++++++++++++
services/api/test/fixtures/groups.yml | 16 ++++++++++++++++
2 files changed, 38 insertions(+)
via 60aa782479f0f97d880bddec1bb35a397f06707e (commit)
from 0d7ba600e89764c4669e9c346514a4c347e4533b (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 60aa782479f0f97d880bddec1bb35a397f06707e
Author: Manoj <jonam33 at gmail.com>
Date: Wed Aug 19 15:13:37 2015 -0400
6640: Added tests to reproduce bug on dashboard.
diff --git a/apps/workbench/test/integration/projects_test.rb b/apps/workbench/test/integration/projects_test.rb
index 5703e18..573cd38 100644
--- a/apps/workbench/test/integration/projects_test.rb
+++ b/apps/workbench/test/integration/projects_test.rb
@@ -709,4 +709,26 @@ class ProjectsTest < ActionDispatch::IntegrationTest
assert page.has_text?('Unrestricted public data'), 'No text - Unrestriced public data'
assert page.has_text?('An anonymously accessible project'), 'No text - An anonymously accessible project'
end
+
+ #this test fails, only shows 200 projects
+ test "project menu shows all projects owned on dashboard" 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>=301,
+ "Found too few items. Expected at least 301 and found #{found_count}")
+ end
+
+ #this test passes, shows all 301 projects
+ test "project menu shows all projects owned on home projects" do
+ visit page_with_token("user1_with_load", "/users/zzzzz-tpzed-user1withloadab")
+ 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>=301,
+ "Found too few items. Expected at least 301 and found #{found_count}")
+ end
end
diff --git a/services/api/test/fixtures/groups.yml b/services/api/test/fixtures/groups.yml
index f6b99a0..2da2173 100644
--- a/services/api/test/fixtures/groups.yml
+++ b/services/api/test/fixtures/groups.yml
@@ -282,3 +282,19 @@ subproject_in_asubproject_with_same_name_as_one_in_active_user_home:
name: Subproject to test owner uuid and name unique key violation upon removal
description: "Removing this will result in name conflict with 'A project' in Home project and hence get renamed."
group_class: project
+
+# Test Helper trims the rest of the file
+
+# Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper
+
+# projects owned by user1_with_load
+<% for i in 1..301 do %>
+project_<%=i%>_of_301:
+ uuid: zzzzz-j7d0g-301gneyn6brd<%= i.to_s.rjust(3, '0') %>
+ owner_uuid: zzzzz-tpzed-user1withloadab
+ created_at: <%= i.minute.ago.to_s(:db) %>
+ name: Project_<%= i %>
+ group_class: project
+<% end %>
+
+# Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list