Merge branch 'master' into 2681-new-inactive-user-notification
[arvados.git] / apps / workbench / test / integration / virtual_machines_test.rb
1 require 'integration_helper'
2
3 class VirtualMachinesTest < ActionDispatch::IntegrationTest
4   test "make and name a new virtual machine" do
5     Capybara.current_driver = Capybara.javascript_driver
6     visit page_with_token('admin_trustedclient')
7     click_link 'Virtual machines'
8     assert page.has_text? 'testvm.shell'
9     click_on 'Add a new virtual machine'
10     find('tr', text: 'hostname').
11       find('span', text: 'none').click
12     assert page.has_text? 'Update hostname'
13     fill_in 'editable-text', with: 'testname'
14     click_button 'editable-submit'
15     assert page.has_text? 'testname'
16   end
17 end