-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DM-5904: Don't render reCAPTCHA for VA users (#990)
* Don't render reCAPTCHA for VA users * update nomination form recaptcha minum score to 0.5 --------- Co-authored-by: Camille Villa <[email protected]> Co-authored-by: PhilipDeFraties <[email protected]>
- Loading branch information
1 parent
e5df1b6
commit 8a83483
Showing
3 changed files
with
13 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
it 'renders form' do | ||
visit '/nominate-an-innovation' | ||
expect(page).to be_accessible.according_to :wcag2a, :section508 | ||
expect(page).to have_css('#recaptcha-placeholder', visible: false) | ||
expect(page).to have_content('Nominate an innovation') | ||
expect(page).to have_content('VA staff and collaborators are welcome to nominate active innovations for consideration on the Diffusion Marketplace using the form below.') | ||
end | ||
|
@@ -13,6 +14,13 @@ | |
visit '/nominate-a-practice' | ||
expect(page).to have_current_path(nominate_an_innovation_path) | ||
end | ||
|
||
it 'does not render reCAPTCHA for VA users' do | ||
@user = User.create!(email: '[email protected]', password: 'Password123', password_confirmation: 'Password123', skip_va_validation: true, confirmed_at: Time.now, accepted_terms: true) | ||
login_as(@user, :scope => :user, :run_callbacks => false) | ||
visit '/nominate-an-innovation' | ||
expect(page).not_to have_selector('#recaptcha-placeholder') | ||
end | ||
end | ||
|
||
context 'Email' do | ||
|