Ensure edited description really gets saved.
authorTom Clegg <tom@curoverse.com>
Tue, 6 May 2014 00:31:18 +0000 (20:31 -0400)
committerTom Clegg <tom@curoverse.com>
Tue, 6 May 2014 00:31:18 +0000 (20:31 -0400)
apps/workbench/test/integration/folders_test.rb

index c8753ac3e9ac13737f982e9e1e1c0b1be0d719c4..a199808d1ec7fcf4c9d1f034954d9ffda3c6d363 100644 (file)
@@ -16,8 +16,12 @@ 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 editable popup to go away
+      page.assert_no_selector '.editable-submit'
     end
-    #find('.panel', text: 'I just edited this.')
+    visit current_path
+    assert(find('.panel', text: 'I just edited this.'),
+           "Description should stay updated after editing and refreshing page.")
   end
 
   test 'Add a new name, then edit it, without creating a duplicate' do