From: Phil Hodgson Date: Tue, 16 Sep 2014 23:05:45 +0000 (-0400) Subject: 3338: fix the integration test so that it checks the on-screen collection count X-Git-Tag: 1.1.0~2188^2~4 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/b941bb69fdf0bfd2cc2ce0de82f570e70f7af86c 3338: fix the integration test so that it checks the on-screen collection count rather than trying to use the fixtures which doesn't work anyway --- diff --git a/apps/workbench/test/integration/projects_test.rb b/apps/workbench/test/integration/projects_test.rb index d36e75b5cf..e061b5f6c4 100644 --- a/apps/workbench/test/integration/projects_test.rb +++ b/apps/workbench/test/integration/projects_test.rb @@ -9,9 +9,9 @@ class ProjectsTest < ActionDispatch::IntegrationTest 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})" + collection_count = page.all("[data-pk*='collection']").count + assert_selector '#Data_collections-tab span', text: "(#{collection_count})" end test 'Find a project and edit its description' do