Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Commit

Permalink
Implement and use refresh the page cuke step definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
adelevie committed Apr 21, 2016
1 parent 0b9df4e commit 35914c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions features/sam_check.feature
Expand Up @@ -17,8 +17,7 @@ Feature: Automatically checking a user's SAM status
When I enter a new DUNS in my profile
And I click on the "Submit" button
Then I should become a valid SAM user
# TODO:
# And I referesh the page
And I referesh the page
Then I should not see a warning about my SAM registration

Scenario: Exception during SAM check on login
Expand Down
4 changes: 4 additions & 0 deletions features/step_definitions/page_steps.rb
@@ -1,3 +1,7 @@
Then(/^I referesh the page$/) do
visit page.current_path
end

When(/^I click on the "?([^"]+)"? button$/) do |button|
# will click the first if there are two with same text!
first(:link_or_button, button).click
Expand Down

0 comments on commit 35914c6

Please sign in to comment.