6320: Update Workbench test for active user VM setup.
authorBrett Smith <brett@curoverse.com>
Tue, 23 Jun 2015 14:21:46 +0000 (10:21 -0400)
committerBrett Smith <brett@curoverse.com>
Tue, 23 Jun 2015 14:21:46 +0000 (10:21 -0400)
Now that the test fixtures give the active user access to testvm2,
this test needs to be updated to account for it, just like the API
server tests were.  Refs #6320.

apps/workbench/test/integration/users_test.rb

index 89554d3f87c6d65912b6fba3b439de7c1a3ef0ba..838884edbfaa8bce6ac9a4e65d7129901e129f1f 100644 (file)
@@ -116,7 +116,9 @@ class UsersTest < ActionDispatch::IntegrationTest
     click_link 'Advanced'
     click_link 'Metadata'
     assert page.has_text? 'Repository: active/activetestrepo'
-    assert !(page.has_text? 'VirtualMachine:')
+    vm_links = all("a", text: "VirtualMachine:")
+    assert_equal(1, vm_links.size)
+    assert_equal("VirtualMachine: testvm2.shell", vm_links.first.text)
 
     # Click on Setup button again and this time also choose a VM
     click_link 'Admin'