-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add E2E scenario for travel advice publisher
We want to avoid running this in production, as it would generate changes to the live site. Although each run of this scenario can generate data, the daily wipes of our non-production DBs should be sufficient to avoid any longterm build up.
- Loading branch information
Ben Thorner
committed
Jun 29, 2020
1 parent
4836559
commit bbb14fc
Showing
2 changed files
with
22 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
When "I publish a new travel advice edition" do | ||
step 'I click on the link "Afghanistan"' | ||
step 'I click on the button "Create new edition"' | ||
choose "edition_update_type_minor" | ||
fill_in "edition_summary", with: "Smokey test" | ||
step 'I click on the button "Save & Publish"' | ||
end | ||
|
||
Then "I should see the updated travel advice" do | ||
step 'I visit "/foreign-travel-advice/afghanistan"' | ||
step 'I should see "Smokey test"' | ||
end |