diff --git a/features/refinery/manage_files.feature b/features/refinery/manage_files.feature index 0aeba7035c..5535438a79 100644 --- a/features/refinery/manage_files.feature +++ b/features/refinery/manage_files.feature @@ -33,7 +33,6 @@ Feature: Manage Files And I follow "Download this file" Then I should see "http://www.refineryhq.com/" - Scenario: Files Delete Given I have no files When I upload the file at "features/uploads/refinery_is_awesome.txt" diff --git a/features/refinery/manage_inquiries.feature b/features/refinery/manage_inquiries.feature index 9e1be90c2b..059c94074d 100644 --- a/features/refinery/manage_inquiries.feature +++ b/features/refinery/manage_inquiries.feature @@ -12,6 +12,30 @@ Feature: Manage Inquiries When I go to the list of inquiries Then I should see "David Jones said Hello, I really like your website. Was it hard to build ..." And I should have 1 inquiries + And I should not see "Create" + + Scenario: Spam List + When I go to the list of inquiries + And I follow "Spam" + Then I should see "Hooray! You don't have any spam." + + Scenario: Updating who gets notified + When I go to the list of inquiries + And I follow "Update who gets notified" + And I fill in "Send notifications to" with "phil@refinerycms.com" + And I press "Save" + Then show me the page + #Then 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" + Then show me the page + #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." + #And I should be on the list of inquiries Scenario: Inquiries Show When I go to the list of inquiries diff --git a/features/support/paths.rb b/features/support/paths.rb index 00bbe7c362..349bc67f9e 100644 --- a/features/support/paths.rb +++ b/features/support/paths.rb @@ -31,6 +31,9 @@ def path_to(page_name) when /the list of inquiries/ admin_inquiries_path + + when /the (d|D)ashboard/ + admin_dashboard_index_path # Add more mappings here. # Here is an example that pulls values out of the Regexp: