Merge branch 'master' into 1971-show-image-thumbnails
[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     assert page.has_text? 'none'
11     click_link 'none'
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