Sha256: 7a05c5d32d8ef6db6d792811d45cfaf8e32e06a2a6084c99a763e3b914726e0b
Contents?: true
Size: 766 Bytes
Versions: 8
Compression:
Stored size: 766 Bytes
Contents
require 'test_plugin_helper' require 'integration_test_helper' module ForemanSalt class SaltVariableTest < IntegrationTestWithJavascript setup do User.current = users :admin end test 'index page' do FactoryBot.create_list :salt_variable, 5 assert_index_page(salt_variables_path, 'Salt Variable', 'New Salt Variable') end test 'create new page' do state = FactoryBot.create :salt_module assert_new_button(salt_variables_path, 'New Salt Variable', new_salt_variable_path) fill_in 'foreman_salt_salt_variable_key', with: 'mykey' select2(state.name, from: 'foreman_salt_salt_variable_salt_module_id') assert_submit_button(salt_variables_path) assert page.has_link? 'mykey' end end end
Version data entries
8 entries across 8 versions & 1 rubygems