Fix long wait for Capybara test
authorTom Morris <tfmorris@curoverse.com>
Thu, 29 Sep 2016 16:33:27 +0000 (12:33 -0400)
committerTom Morris <tfmorris@curoverse.com>
Thu, 29 Sep 2016 16:34:20 +0000 (12:34 -0400)
apps/workbench/test/integration/users_test.rb

index 90a3eb2333fedeae32b80ef9146323689bf2fbca..140cb561276092ae103d0bd0a0200d71839cd755 100644 (file)
@@ -80,7 +80,8 @@ class UsersTest < ActionDispatch::IntegrationTest
 
     click_link 'Advanced'
     click_link 'Metadata'
-    assert !(page.has_text? 'VirtualMachine:')
+    assert page.has_text? 'can_login' # make sure page is rendered / ready
+    assert page.has_no_text? 'VirtualMachine:'
   end
 
   test "setup the active user" do