projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
fe3b22e
)
3531: Fix test to accommodate more ajax.
author
Tom Clegg <tom@curoverse.com>
Sun, 10 Aug 2014 19:57:56 +0000
(15:57 -0400)
committer
Tom Clegg <tom@curoverse.com>
Sun, 10 Aug 2014 19:57:56 +0000
(15:57 -0400)
apps/workbench/test/integration/projects_test.rb
patch
|
blob
|
history
diff --git
a/apps/workbench/test/integration/projects_test.rb
b/apps/workbench/test/integration/projects_test.rb
index 38d4063ce2a422695265ad1721b7683a6e2d493e..b2c9d772d14b652688273023eeeb0d7ee9111017 100644
(file)
--- a/
apps/workbench/test/integration/projects_test.rb
+++ b/
apps/workbench/test/integration/projects_test.rb
@@
-30,18
+30,20
@@
class ProjectsTest < ActionDispatch::IntegrationTest
specimen_uuid = api_fixture('specimens')['owned_by_aproject_with_no_name_link']['uuid']
visit page_with_token 'active', '/projects/' + project_uuid
click_link 'Other objects'
specimen_uuid = api_fixture('specimens')['owned_by_aproject_with_no_name_link']['uuid']
visit page_with_token 'active', '/projects/' + project_uuid
click_link 'Other objects'
- within(".selection-action-container") do
- within (first('tr', text: 'Specimen')) do
+ within '.selection-action-container' do
+ # Wait for the tab to load:
+ assert_selector 'tr[data-kind="arvados#specimen"]'
+ within first('tr', text: 'Specimen') do
find(".fa-pencil").click
find('.editable-input input').set('Now I have a name.')
find('.glyphicon-ok').click
find(".fa-pencil").click
find('.editable-input input').set('Now I have a name.')
find('.glyphicon-ok').click
- find('.editable', text: 'Now I have a name.').click
+ assert_selector '.editable', text: 'Now I have a name.'
find(".fa-pencil").click
find('.editable-input input').set('Now I have a new name.')
find('.glyphicon-ok').click
find(".fa-pencil").click
find('.editable-input input').set('Now I have a new name.')
find('.glyphicon-ok').click
-
end
+ end
wait_for_ajax
wait_for_ajax
- find('.editable', text: 'Now I have a new name.')
+ assert_selector '.editable', text: 'Now I have a new name.'
end
visit current_path
click_link 'Other objects'
end
visit current_path
click_link 'Other objects'