-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace poltergeist with apparition; fix failing tests
- Loading branch information
Showing
8 changed files
with
56 additions
and
101 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,16 +8,16 @@ | |
fill_in_basic_info(title: "Very Important Action", | ||
summary: "A summary", | ||
description: "A description") | ||
click_on "Next" | ||
next_section | ||
|
||
select_action_type("tweet") | ||
fill_in "Message", with: "A message" | ||
click_on "Next" | ||
next_section | ||
|
||
# skip banner selection | ||
next_section | ||
|
||
skip_image_selection | ||
fill_in_social_media | ||
# Skip partners | ||
click_on "Next" | ||
|
||
tempermental { | ||
click_button "Save" | ||
|
@@ -30,18 +30,18 @@ | |
fill_in_basic_info(title: "Very Important Action", | ||
summary: "A summary", | ||
description: "A description") | ||
click_on "Next" | ||
next_section | ||
|
||
select_action_type("petition") | ||
fill_in_editor "#action_page_petition_attributes_description", | ||
with: "A petititon letter" | ||
fill_in "Goal", with: 1000 | ||
click_on "Next" | ||
next_section | ||
|
||
# skip banner selection | ||
next_section | ||
|
||
skip_image_selection | ||
fill_in_social_media | ||
# Skip partners | ||
click_on "Next" | ||
|
||
tempermental { | ||
click_button "Save" | ||
|
@@ -54,18 +54,18 @@ | |
fill_in_basic_info(title: "Very Important Action", | ||
summary: "A summary", | ||
description: "A description") | ||
click_on "Next" | ||
next_section | ||
|
||
select_action_type("email") | ||
fill_in "To", with: "[email protected]" | ||
fill_in "Subject", with: "Subject" | ||
fill_in "Message", with: "An email" | ||
click_on "Next" | ||
next_section | ||
|
||
# skip banner selection | ||
next_section | ||
|
||
skip_image_selection | ||
fill_in_social_media | ||
# Skip partners | ||
click_on "Next" | ||
|
||
tempermental { | ||
click_button "Save" | ||
|
@@ -78,17 +78,17 @@ | |
fill_in_basic_info(title: "Very Important Action", | ||
summary: "A summary", | ||
description: "A description") | ||
click_on "Next" | ||
next_section | ||
|
||
select_action_type("congress_message") | ||
fill_in "Subject", with: "Subject" | ||
fill_in "Message", with: "A message" | ||
click_on "Next" | ||
next_section | ||
|
||
# skip banner selection | ||
next_section | ||
|
||
skip_image_selection | ||
fill_in_social_media | ||
# Skip partners | ||
click_on "Next" | ||
|
||
tempermental { | ||
click_button "Save" | ||
|
@@ -101,17 +101,17 @@ | |
fill_in_basic_info(title: "Very Important Action", | ||
summary: "A summary", | ||
description: "A description") | ||
click_on "Next" | ||
next_section | ||
|
||
select_action_type "call" | ||
fill_in_editor "#action_page_call_campaign_attributes_message", | ||
with: "Call script" | ||
click_on "Next" | ||
next_section | ||
|
||
# skip banner selection | ||
next_section | ||
|
||
skip_image_selection | ||
fill_in_social_media | ||
# Skip partners | ||
click_on "Next" | ||
|
||
tempermental { | ||
click_button "Save" | ||
|
@@ -126,17 +126,15 @@ def fill_in_basic_info(title:, summary:, description:) | |
fill_in_select2 "#action_page_category_id", with: category.title | ||
end | ||
|
||
def skip_image_selection | ||
def next_section | ||
click_on "Next" | ||
sleep 0.1 | ||
click_on "Next" | ||
sleep 0.1 | ||
sleep 0.05 | ||
end | ||
|
||
def fill_in_social_media | ||
fill_in "Share Message", with: "Twitter message" | ||
fill_in "Title", with: "A social media title" | ||
click_on "Next" | ||
next_section | ||
end | ||
|
||
def select_action_type(type) | ||
|
This file was deleted.
Oops, something went wrong.
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