6254: add groups and verify in test.
[arvados.git] / apps / workbench / test / integration / users_test.rb
index a329f5188eada16eac38e79d9288ccb61d7f8c94..89554d3f87c6d65912b6fba3b439de7c1a3ef0ba 100644 (file)
@@ -125,6 +125,7 @@ class UsersTest < ActionDispatch::IntegrationTest
     within '.modal-content' do
       fill_in "repo_name", :with => "activetestrepo2"
       select("testvm.shell", :from => 'vm_uuid')
+      fill_in "groups", :with => "test group one, test-group-two"
       click_button "Submit"
     end
 
@@ -135,6 +136,7 @@ class UsersTest < ActionDispatch::IntegrationTest
     click_link 'Metadata'
     assert page.has_text? 'Repository: active/activetestrepo2'
     assert page.has_text? 'VirtualMachine: testvm.shell'
+    assert page.has_text? '["test group one", "test-group-two"]'
   end
 
   test "unsetup active user" do