Skip to content

Commit

Permalink
workaround in cucumber inquiries feature for iframes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols authored and parndt committed Jul 30, 2010
1 parent cb65ee5 commit 05b047d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions features/refinery/manage_inquiries.feature
Expand Up @@ -24,15 +24,17 @@ Feature: Manage Inquiries
And I follow "Update who gets notified"
And I fill in "Send notifications to" with "phil@refinerycms.com"
And I press "Save"
Then I should see "'Notification Recipients' was successfully updated"
Then I should be redirected back to "the list of inquiries"
And I should see "'Notification Recipients' was successfully updated."
And I should be on the list of inquiries

Scenario: Updating confirmation email copy
When I go to the list of inquiries
And I follow "Edit confirmation email"
And I fill in "Message" with "Thanks %name%! We'll never get back to you!"
And I press "Save"
Then I should see "'Confirmation Body' was successfully updated."
Then I should be redirected back to "the list of inquiries"
And I should see "'Confirmation Body' was successfully updated."
And I should be on the list of inquiries

Scenario: Inquiries Show
Expand Down
4 changes: 4 additions & 0 deletions features/step_definitions/refinery/core_steps.rb
Expand Up @@ -49,3 +49,7 @@
And 'I press the login button'
Then 'I should not see a login form'
end

Then /^I should be redirected back to "([^"]*)"$/ do |page_name|
visit path_to(page_name)
end

0 comments on commit 05b047d

Please sign in to comment.