[ARVADOS] updated: 893f659712cd9b742829b17e2cedc822901608ec
git at public.curoverse.com
git at public.curoverse.com
Thu Sep 11 18:18:42 EDT 2014
Summary of changes:
apps/workbench/app/views/projects/tab_counts.js.erb | 2 +-
apps/workbench/test/integration/projects_test.rb | 7 +++++++
2 files changed, 8 insertions(+), 1 deletion(-)
via 893f659712cd9b742829b17e2cedc822901608ec (commit)
from 451e52c2a7a6ead01e5ebca28e09dd02fcba49da (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 893f659712cd9b742829b17e2cedc822901608ec
Author: Phil Hodgson <bitbucket at philhodgson.net>
Date: Thu Sep 11 18:18:39 2014 -0400
3338: Tests that the fixture collection count for a project matches what is displayed in the tab
diff --git a/apps/workbench/app/views/projects/tab_counts.js.erb b/apps/workbench/app/views/projects/tab_counts.js.erb
index bf64378..6502e2e 100644
--- a/apps/workbench/app/views/projects/tab_counts.js.erb
+++ b/apps/workbench/app/views/projects/tab_counts.js.erb
@@ -1,3 +1,3 @@
<% @tab_counts.each do |pane_name, tab_count| %>
- $('span#<%= pane_name %>-count').html(' (<%= tab_count %>)');
+ $('span#<%= pane_name %>-count').html('(<%= tab_count %>)');
<% end %>
\ No newline at end of file
diff --git a/apps/workbench/test/integration/projects_test.rb b/apps/workbench/test/integration/projects_test.rb
index 100f3bb..d36e75b 100644
--- a/apps/workbench/test/integration/projects_test.rb
+++ b/apps/workbench/test/integration/projects_test.rb
@@ -7,6 +7,13 @@ class ProjectsTest < ActionDispatch::IntegrationTest
Capybara.current_driver = Capybara.javascript_driver
end
+ test 'Check collection count for A Project in the tab pane titles' do
+ project_uuid = api_fixture('groups')['aproject']['uuid']
+ collection_fixture_count = api_fixture('collections').select{|k,v| v['owner_uuid'] == project_uuid}.count
+ visit page_with_token 'active', '/projects/' + project_uuid
+ assert_selector '#Data_collections-tab span', text: "(#{collection_fixture_count})"
+ end
+
test 'Find a project and edit its description' do
visit page_with_token 'active', '/'
find('.arv-project-list a,button', text: 'A Project').
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list