Sha256: 6513f439cc8b423f741bc52d72ced99ae3b9d0896dec8dee718ab3dfce718f04

Contents?: true

Size: 734 Bytes

Versions: 12

Compression:

Stored size: 734 Bytes

Contents

Given(/^I am logged in as "([^\"]*)"$/) do |user|
  visit '/admin/login'
  user = users(user.intern)
  fill_in 'Username', :with => user.login
  fill_in 'Password', :with => 'password'
  click_button 'Login'
end

Given /^there are no pages$/ do
  Page.delete_all
  PagePart.delete_all
end

Then /^"([^\"]*)" should be selected for "([^\"]*)"$/ do |value, field|
  select_box = field_labeled(field)
  response.should have_tag("select##{select_box.id}") do
    with_tag('option[selected]', :text => value)
  end
end

When /^I save and open the page$/ do
  save_and_open_page
end

Then /^I should see an error message$/ do
  response.should have_tag('#error')
end

Then /^I should see the form$/ do
  response.should have_tag('form')
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
radiantcms-couchrest_model-0.2.4 features/step_definitions/admin/admin_steps.rb
radiantcms-couchrest_model-0.2.2 features/step_definitions/admin/admin_steps.rb
radiantcms-couchrest_model-0.2.1 features/step_definitions/admin/admin_steps.rb
radiantcms-couchrest_model-0.2 features/step_definitions/admin/admin_steps.rb
radiantcms-couchrest_model-0.1.9 features/step_definitions/admin/admin_steps.rb
radiantcms-couchrest_model-0.1.8 features/step_definitions/admin/admin_steps.rb
radiantcms-couchrest_model-0.1.7 features/step_definitions/admin/admin_steps.rb
radiantcms-couchrest_model-0.1.6 features/step_definitions/admin/admin_steps.rb
radiantcms-couchrest_model-0.1.5 features/step_definitions/admin/admin_steps.rb
radiant-0.8.2 features/step_definitions/admin/admin_steps.rb
radiant-0.8.1 features/step_definitions/admin/admin_steps.rb
radiant-0.8.0 features/step_definitions/admin/admin_steps.rb