Sha256: c378bbc4cdbc80f0837c3594d43fa40f4a36d53c879634566176cec29a7110e5
Contents?: true
Size: 921 Bytes
Versions: 16
Compression:
Stored size: 921 Bytes
Contents
require 'test_puppet_helper' require 'integration_test_helper' module ForemanPuppet class EnvironmentJSTest < IntegrationTestWithJavascript include ForemanPuppet::Engine.routes.url_helpers let(:environment) { FactoryBot.create(:environment) } setup { environment } test 'index page' do assert_index_page(environments_path, 'Environments', 'Create Puppet Environment') end test 'create new page' do assert_new_button(environments_path, 'Create Puppet Environment', new_environment_path) fill_in 'environment_name', with: 'golive' assert_submit_button(environments_path) assert page.has_link? 'golive' end test 'edit page' do visit environments_path click_link environment.name fill_in 'environment_name', with: 'production222' assert_submit_button(environments_path) assert page.has_link? 'production222' end end end
Version data entries
16 entries across 16 versions & 1 rubygems