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.15 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.4.36 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.5.14 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.4.35 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.5.13 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.4.34 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.5.12 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.4.33 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.5.11 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.5.10 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.4.32 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.5.9 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.4.31 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.5.8 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.4.30 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.5.7 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.4.29 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.5.6 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.4.28 test/system/workarea/admin/timeline_system_test.rb
workarea-admin-3.5.5 test/system/workarea/admin/timeline_system_test.rb