Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow global exports to optionally exclude spam
This is the setting by default.
- Loading branch information
1 parent
7bfff1c
commit 6c455b7
Showing
4 changed files
with
36 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
require 'rails_helper' | ||
require 'gds_api/test_helpers/support_api' | ||
|
||
feature 'Exporting Global CSV of Feedback' do | ||
let(:user) { create :user_who_can_access_everything } | ||
|
||
background do | ||
stub_organisations_list | ||
|
||
login_as user | ||
end | ||
|
||
scenario 'spam is marked to be removed by default' do | ||
visit "/" | ||
|
||
click_link 'Feedback explorer' | ||
|
||
within('.global-export-request') do | ||
expect(page.find(:css, 'input[name="exclude_spam"]')).to be_checked | ||
end | ||
end | ||
end |