This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
-
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.
Remove export get-involved features and corresponding steps
Tests for the get-involved page have been written in government-frontend now [1], so we can now remove these features that don't meet the Smokey eligibility criteria. [1]: alphagov/government-frontend#2473
- Loading branch information
Showing
2 changed files
with
0 additions
and
150 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 |
---|---|---|
@@ -1,41 +1,5 @@ | ||
Then /^I should see the next closing box$/ do | ||
expect(page).to have_css(".gem-c-inset-text") | ||
end | ||
|
||
And /^it should be populated$/ do | ||
within ".gem-c-inset-text.govuk-inset-text" do | ||
expect(page).to have_css(".govuk-body") | ||
@title = find(:xpath, "p").native.text | ||
end | ||
end | ||
|
||
When /^I click the next closing response link$/ do | ||
within ".gem-c-inset-text" do | ||
click_link "Read and respond" | ||
end | ||
end | ||
|
||
Then /^I should see the next closing consultation$/ do | ||
expect(page).to have_content(@title) | ||
end | ||
|
||
And /^it should be populated with three open consultations$/ do | ||
within ".get-involved > div:nth-child(4) > div" do | ||
expect(page).to have_css(".gem-c-document-list__item-title", count: 3) | ||
end | ||
end | ||
|
||
And /^it should be populated with three closed consultations$/ do | ||
within ".get-involved > div:nth-child(5) > div" do | ||
expect(page).to have_css(".gem-c-document-list__item-title", count: 3) | ||
end | ||
end | ||
|
||
Then /^I should see the search link "(.*?)"$/ do |link| | ||
expect(page).to have_content(link) | ||
@linktext = link | ||
end | ||
|
||
And /^it should link to "(.*?)"$/ do |link| | ||
have_link(@linktext, :href => link) | ||
end |