Permalink
Browse files

More missing files

  • Loading branch information...
Gerry Gleason
Gerry Gleason committed Dec 20, 2012
1 parent efb0b76 commit 92da648a1afed84203130bee6bb2e5948dc9bffa
Showing with 11 additions and 4 deletions.
  1. +3 −4 features/hello_wagn.feature
  2. +8 −0 features/step_definitions/wagn_steps.rb
@@ -12,12 +12,11 @@ Feature: Seeing a card
Then I should see "Home"
And I should see "Joe User"
And I should see "Sign out"
- And In the main card header I should see "≡"
-#this is the unicode version of the html entity to open the menu
+ Then In the main card header I should see a link with class "ui-icon-gear"
Then In the main card header I click "close Home"
- And In the main card header I should not see "≡"
+ Then In the main card header I should not see a link with class "ui-icon-gear"
Then In the main card header I click "open Home"
- And In the main card header I should see "≡"
+ Then In the main card header I should see a link with class "ui-icon-gear"
Scenario: Create a Card
Given I log in as Joe User
@@ -170,6 +170,14 @@ def logged_in_as(username)
end
end
+Then /^In (.*) I should (not )?see a ([^\"]*) with class "([^\"]*)"$/ do |selection, neg, element, selector|
+ # checks for existence of a element with a class in a selection context
+ element = 'a' if element == 'link'
+ within scope_of(selection) do
+ page.send ( neg ? :should_not : :should ), have_css( [ element, selector ] * '.' )
+ end
+end
+
Then /^the "([^"]*)" field should contain "([^"]*)"$/ do |field, value|
field_labeled(field).value.should =~ /#{value}/
end

0 comments on commit 92da648

Please sign in to comment.