Sha256: 94a38a463c9060fe756db083408f4b669daea620855b3a604c7169af60749106

Contents?: true

Size: 1.13 KB

Versions: 9

Compression:

Stored size: 1.13 KB

Contents

When /^I visit (.*) page$/ do |target_page|
  case target_page
  when 'admin_data'
    visit '/admin_data'

  when 'quick_search'
    visit '/admin_data/quick_search/user'

  when 'advance_search'
    visit '/admin_data/advance_search/user'

  when 'user show'
    visit "/admin_data/klass/user/#{User.last.id}"

  when 'phone_number show'
    visit "/admin_data/klass/phone_number/#{PhoneNumber.last.id}"

  when 'newspaper show'
    visit "/admin_data/klass/newspaper/#{Newspaper.last.paper_id}"

  when 'user feed'
    visit "/admin_data/feed/user"

  when 'quick search page with association info'
    visit "/admin_data/quick_search/phone_number?base=user&children=phone_numbers&model_id=#{User.last.id}"

  when 'quick search with wrong klass name'
    visit "/admin_data/quick_search/phone_number_wrong"

  when 'quick search with wrong base klass name'
    visit "/admin_data/quick_search/phone_number?base=user_wrong&children=phone_numbers&model_id=#{User.last.id}"

  when 'quick search with wrong children klass name'
    visit "/admin_data/quick_search/phone_number?base=user&children=phone_numbers_wrong&model_id=#{User.last.id}"
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
the_jobbook_admin_data-1.3.0a test/dummy/features/step_definitions/app_steps.rb
admin_data-1.2.1 test/rails_root/features/step_definitions/app_steps.rb
admin_data-1.2.0 test/rails_root/features/step_definitions/app_steps.rb
admin_data-1.1.16 test/rails_root/features/step_definitions/app_steps.rb
admin_data-1.1.15 test/rails_root/features/step_definitions/app_steps.rb
admin_data-1.1.14 test/rails_root/features/step_definitions/app_steps.rb
admin_data-1.1.13 test/rails_root/features/step_definitions/app_steps.rb
admin_data-1.1.12 test/rails_root/features/step_definitions/app_steps.rb
admin_data-1.1.11 test/rails_root/features/step_definitions/app_steps.rb