1 require 'integration_helper'
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'