-
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.
Merge pull request #1257 from alphagov/add-publisher-test-for-db-access
Add a Mainstream Publisher non-production test
- Loading branch information
Showing
3 changed files
with
30 additions
and
4 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,21 @@ | ||
When /^I add an artefact$/ do | ||
click_link "Add artefact" | ||
fill_in "Title", with: "Smokey Guide" | ||
fill_in "Slug", with: "smokey-guide" | ||
select "Guide", from: "Format" | ||
click_button "Save and go to item" | ||
expect(page).to have_selector("h1", text: "Smokey Guide") | ||
end | ||
|
||
When /^I delete the artefact$/ do | ||
click_link "Admin" | ||
click_button "Delete this edition – #1" | ||
end | ||
|
||
Then /^I should see that the edition has been deleted$/ do | ||
expect(page).to have_content("Edition deleted") | ||
end | ||
|
||
Then /^I should see Publisher's publication index$/ do | ||
expect(page).to have_selector("#publication-list-container") | ||
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