Skip to content

Commit

Permalink
Disable contact form on About page
Browse files Browse the repository at this point in the history
  • Loading branch information
camillevilla committed Dec 11, 2023
1 parent 1024d3c commit 1cca09d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/views/about/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@
<p class="usa-prose-body">
Have feedback or questions for the Diffusion Marketplace team? Send a message to <a href="mailto:[email protected]?subject=(About) Diffusion Marketplace Inquiry" class="usa-link">[email protected]</a> and we’ll get back to you as soon as we can.
</p>
<%= render partial: 'shared/email_form', locals: { path: about_path, additional_label_text: nil } %>
</div>
</section>
</div>
2 changes: 1 addition & 1 deletion app/views/shared/_email_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
<input type="submit" value="Send message" class="usa-button margin-right-0">
</div>

<%= recaptcha_v3(action: 'email', site_key: ENV['RECAPTCHA_SITE_KEY_V3']) %>
<%= recaptcha_v3(action: 'email', site_key: ENV['RECAPTCHA_SITE_KEY_V3']) if ENV['RECAPTCHA_SITE_KEY_V3'] %>
<% end %>
4 changes: 2 additions & 2 deletions spec/features/about_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
end

describe 'Send us feedback section' do
it 'should allow the user to send an email to the marketplace team' do
xit 'should allow the user to send an email to the marketplace team' do
fill_in('Your email', with: '[email protected]')
# all fields should be required
click_button('Send message')
Expand All @@ -58,7 +58,7 @@
expect(page).to have_content('You successfully sent a message to the Diffusion Marketplace team.')
end
#spam detector................................................................
it 'should log and redirect user to homepage if phone field is populated' do
xit 'should log and redirect user to homepage if phone field is populated' do
fill_in('Your email', with: '[email protected]')
fill_in('Subject line', with: 'Test subject')
fill_in('Your message', with: 'This is a test message')
Expand Down

0 comments on commit 1cca09d

Please sign in to comment.