Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
Merge pull request #188 from alphagov/wait-for-whitehall-published
Browse files Browse the repository at this point in the history
Wait for Whitehall document to be published before unpublishing it
  • Loading branch information
adrianclay authored Feb 13, 2018
2 parents 3acf8ba + 0863a81 commit c126f95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/whitehall/unpublish_document_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def given_i_have_a_published_document
force_publish_document
click_link title
@published_url = find_link("View on website")[:href]
reload_url_until_status_code(@published_url, 200)
end

def when_i_unpublish_it_and_redirect_to_another_page
Expand Down

0 comments on commit c126f95

Please sign in to comment.