Merge branch 'master' into 2756-eventbus-in-workbench
[arvados.git] / apps / workbench / test / integration / folders_test.rb
index c8753ac3e9ac13737f982e9e1e1c0b1be0d719c4..dc51b7724d7832ee8e363206230b764224de2c92 100644 (file)
@@ -16,8 +16,11 @@ class FoldersTest < ActionDispatch::IntegrationTest
       find('.btn', text: 'Edit description').click
       find('.editable-input textarea').set('I just edited this.')
       find('.editable-submit').click
+      wait_for_ajax
     end
-    #find('.panel', text: 'I just edited this.')
+    visit current_path
+    assert(find?('.panel', text: 'I just edited this.'),
+           "Description update did not survive page refresh")
   end
 
   test 'Add a new name, then edit it, without creating a duplicate' do
@@ -32,6 +35,7 @@ class FoldersTest < ActionDispatch::IntegrationTest
       find('.editable', text: 'Now I have a name.').click
       find('.editable-input input').set('Now I have a new name.')
       find('.glyphicon-ok').click
+      wait_for_ajax
       find('.editable', text: 'Now I have a new name.')
     end
     visit current_path