Sha256: 49e9e7d09950ec6f64eb86e8f6ea56bdbc4d43c1a1fbd3676f7fc5493884843d

Contents?: true

Size: 1.66 KB

Versions: 62

Compression:

Stored size: 1.66 KB

Contents

require 'test_helper'

module Workarea
  module Admin
    class TimelineSystemTest < SystemTest
      include Admin::IntegrationTest

      def test_timeline
        visit admin.catalog_categories_path

        click_link 'Add New Category'
        fill_in 'category[name]', with: 'Test Category'
        click_button 'save_setup'

        click_link 'or skip this'
        click_link 'Continue to Taxonomy'
        click_button 'Save and Continue'
        click_button 'Save and Continue'
        click_button 'Save and Finish'

        assert(page.has_content?('Ben Crouse'))
        assert(
          page.has_content?(
            t(
              'workarea.admin.activities.catalog_category_create_html',
              name: 'Test Category'
            )
          )
        )
        click_link 'Timeline'

        assert(page.has_content?('Ben Crouse'))
        assert(
          page.has_content?(
            t(
              'workarea.admin.activities.catalog_category_create_html',
              name: 'Test Category'
            )
          )
        )
        click_link 'Test Category', match: :first
        click_link 'Attributes'

        visit admin.create_releases_path
        fill_in 'release[name]', with: 'Fall Release'
        click_button 'save_setup'

        visit admin.catalog_categories_path
        click_link 'Test Category'
        click_link 'Attributes'

        select 'Fall Release', from: 'release_id'
        fill_in 'category[name]', with: 'Edited Category'
        click_button 'save_category'

        select 'the live site', from: 'release_id'
        click_link 'Timeline'
        assert(page.has_content?('Fall Release'))
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-admin-3.5.27 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.5.26 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.4.45 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.5.25 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.5.23 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.4.44 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.5.22 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.4.43 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.5.21 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.4.42 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.5.20 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.4.41 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.5.19 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.4.40 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.5.18 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.4.39 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.5.17 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.4.38 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.5.16 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.4.37 test/system/workarea/admin/timeline_system_test.rb