forked from alphagov/e-petitions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Has a failing cucumber test
- Loading branch information
Showing
19 changed files
with
52 additions
and
53 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
app/views/admin/admin/_petition_action_email_petitioners.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<% if @petition.is_a?(::Archived::Petition) %> | ||
<%= link_to 'Other parliamentary business', new_admin_archived_petition_email_path(@petition), class: 'petition-action-heading' %> | ||
<%= link_to 'Updates', new_admin_archived_petition_email_path(@petition), class: 'petition-action-heading' %> | ||
<% else %> | ||
<%= link_to 'Other parliamentary business', new_admin_petition_email_path(@petition), class: 'petition-action-heading' %> | ||
<%= link_to 'Updates', new_admin_petition_email_path(@petition), class: 'petition-action-heading' %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...etitions/_other_business_details.html.erb → app/views/petitions/_update_details.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ Feature: Emailing petitioner supporters | |
And I am logged in as a sysadmin with the email "[email protected]", first_name "Admin", last_name "User" | ||
When I am on the admin all petitions page | ||
And I follow "Ban Badger Baiting" | ||
And I follow "Other parliamentary business" | ||
And I follow "Updates" | ||
Then I should be on the admin email petitioners form page for "Ban Badger Baiting" | ||
And the markup should be valid | ||
When I press "Email 6 petitioners" | ||
|
@@ -27,7 +27,7 @@ Feature: Emailing petitioner supporters | |
And I am logged in as a sysadmin with the email "[email protected]", first_name "Admin", last_name "User" | ||
When I am on the admin all petitions page | ||
And I follow "Ban Badger Baiting" | ||
And I follow "Other parliamentary business" | ||
And I follow "Updates" | ||
Then I should be on the admin email petitioners form page for "Ban Badger Baiting" | ||
And the markup should be valid | ||
When I press "Save" | ||
|
@@ -45,7 +45,7 @@ Feature: Emailing petitioner supporters | |
And I am logged in as a sysadmin with the email "[email protected]", first_name "Admin", last_name "User" | ||
When I am on the admin all petitions page | ||
And I follow "Ban Badger Baiting" | ||
And I follow "Other parliamentary business" | ||
And I follow "Updates" | ||
Then I should be on the admin email petitioners form page for "Ban Badger Baiting" | ||
And the markup should be valid | ||
When I press "Save" | ||
|
@@ -64,16 +64,16 @@ Feature: Emailing petitioner supporters | |
And I am logged in as a sysadmin with the email "[email protected]", first_name "Admin", last_name "User" | ||
When I am on the admin all petitions page | ||
And I follow "Ban Badger Baiting" | ||
And I follow "Other parliamentary business" | ||
And I follow "Updates" | ||
Then I should be on the admin email petitioners form page for "Ban Badger Baiting" | ||
And the markup should be valid | ||
And I should see "This will be debated" | ||
When I press "Edit" | ||
Then I should see "Edit other parliamentary business" | ||
Then I should see "Edit update" | ||
When I fill in "Subject" with "This will not be debated" | ||
And I press "Save" | ||
Then I should see "Updated other parliamentary business successfully" | ||
When I follow "Other parliamentary business" | ||
Then I should see "Updated petition update successfully" | ||
When I follow "Updates" | ||
Then I should see "This will not be debated" | ||
|
||
Scenario: Deleting an email to all petitioners | ||
|
@@ -82,11 +82,11 @@ Feature: Emailing petitioner supporters | |
And I am logged in as a sysadmin with the email "[email protected]", first_name "Admin", last_name "User" | ||
When I am on the admin all petitions page | ||
And I follow "Ban Badger Baiting" | ||
And I follow "Other parliamentary business" | ||
And I follow "Updates" | ||
Then I should be on the admin email petitioners form page for "Ban Badger Baiting" | ||
And the markup should be valid | ||
And I should see "This will be debated" | ||
When I press "Delete" | ||
Then I should see "Deleted other parliamentary business successfully" | ||
When I follow "Other parliamentary business" | ||
Then I should see "Deleted petition update successfully" | ||
When I follow "Updates" | ||
Then I should not see "This will be debated" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters