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.
Rename parliamentary business as 'related activity' (alphagov#900)
- Loading branch information
Showing
21 changed files
with
55 additions
and
55 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 'Updates', new_admin_archived_petition_email_path(@petition), class: 'petition-action-heading' %> | ||
<%= link_to 'Related activity', new_admin_archived_petition_email_path(@petition), class: 'petition-action-heading' %> | ||
<% else %> | ||
<%= link_to 'Updates', new_admin_petition_email_path(@petition), class: 'petition-action-heading' %> | ||
<%= link_to 'Related activity', 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
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
4 changes: 2 additions & 2 deletions
4
app/views/petitions/_update_details.html.erb → ...itions/_related_activity_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 "Updates" | ||
And I follow "Related activity" | ||
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 "Updates" | ||
And I follow "Related activity" | ||
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 "Updates" | ||
And I follow "Related activity" | ||
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 "Updates" | ||
And I follow "Related activity" | ||
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 petition update" | ||
Then I should see "Edit related activity" | ||
When I fill in "Subject" with "This will not be debated" | ||
And I press "Save" | ||
Then I should see "Updated petition update successfully" | ||
When I follow "Updates" | ||
Then I should see "Updated related activity successfully" | ||
When I follow "Related activity" | ||
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 "Updates" | ||
And I follow "Related activity" | ||
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 petition update successfully" | ||
When I follow "Updates" | ||
Then I should see "Deleted related activity successfully" | ||
When I follow "Related activity" | ||
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
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