1 require 'integration_helper'
3 class VirtualMachinesTest < ActionDispatch::IntegrationTest
4 test "make and name a new virtual machine" do
6 visit page_with_token('admin_trustedclient')
7 find('#system-menu').click
8 click_link 'Virtual machines'
9 assert page.has_text? 'testvm.shell'
10 click_on 'Add a new virtual machine'
11 find('tr', text: 'hostname').
12 find('a[data-original-title=edit]').click
13 assert page.has_text? 'Edit hostname'
14 fill_in 'editable-text', with: 'testname'
15 click_button 'editable-submit'
16 assert page.has_text? 'testname'