Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/integration/foreman_puppet/host_js_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class HostJSTest < IntegrationTestWithJavascript
wait_for_ajax
click_on_inherit('puppet_attributes_environment')
select2(overridden_hostgroup.name, from: 'host_hostgroup_id')
assert page.select2_selector('host_puppet_attributes_environment_id').has_text? overridden_hostgroup.puppet.environment.name
assert page.find(select2_selector('host_puppet_attributes_environment_id')).has_text? overridden_hostgroup.puppet.environment.name
end

test 'sets fields to "inherit" when hostgroup is selected' do
Expand Down Expand Up @@ -145,7 +145,7 @@ class HostJSTest < IntegrationTestWithJavascript
assert select2_chosen_selector('host_puppet_attributes_environment_id').has_text? original_hostgroup.puppet.environment.name

# On host group change, the disabled select will be reset to an empty value - disabled select2 is invisible on chrome
assert select2_chosen_selector('host_puppet_proxy_id', visible: :all).has_text? ''
assert find(select2_selector('host_puppet_proxy_id'), visible: :all).has_text? ''
end

context 'has inherited Puppetclasses' do
Expand Down
Loading