Sha256: 3ce6a951bc3b2ba32d0ff5e8f6df7cab7eae8455887ebbd0e61c652f31366868

Contents?: true

Size: 1.64 KB

Versions: 5

Compression:

Stored size: 1.64 KB

Contents

Then /^I should see a link to my sample features$/ do
  page.should have_link "Kate Moss", :href => "/features/kate-moss"
  page.should have_link "Katie Price", :href => "/features/katie-price"
  page.should have_link "Jessica-Jane Clement", :href => "/features/jessica-jane-clement"
  page.should have_link "Elle Macpherson", :href => "/features/elle-macpherson"
end

When /^I visit the sample feature page$/ do
  visit "/features/sample-feature"
end

Then /^I should see the feature free\-form narrative$/ do
  page.should have_content "In order to get some value"
  page.should have_content "As a person"
  page.should have_content "I want to create value"
end

Then /^I should see Scenario headers as links$/ do
  page.body.should have_content "Scenarios"
  page.should have_link "Sample Aidy", :href => "/features/sample-feature/scenario/sample-aidy"
  page.should have_link "Sample Andrew", :href => "/features/sample-feature/scenario/sample-andrew"
end

When /^click on a scenario header link$/ do
  page.click_link "Sample Aidy"
end


Then /^a page appears with the scenario content$/ do
  page.body.should have_content "Sample Aidy"
  page.body.should have_content "Given my name is \"Aidy\""
  page.body.should have_content "When I drink alcohol"
  page.body.should have_content "Then I go nuts"
end

Then /^the background is visible$/ do
  page.body.should have_content "Background:"
  page.body.should have_content "Given some things"
end

Then /^the scenario links are sorted$/ do
  page.body.should =~ /C.*I.*N.*V/m
end

Then /^the features are ordered alphabetically$/ do
  page.body.should =~ /Elle Macpherson.*Jessica-Jane Clement.*Kate Moss.*Katie Price/m
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wally-0.0.33 features/step_definitions/browse_features_steps.rb
wally-0.0.32 features/step_definitions/browse_features_steps.rb
wally-0.0.31 features/step_definitions/browse_features_steps.rb
wally-0.0.30 features/step_definitions/browse_features_steps.rb
wally-0.0.29 features/step_definitions/browse_features_steps.rb