Sha256: b3ed1e6e6d2b659315af1deffe91624aefb70f509707870d4a07c2856c0f9233

Contents?: true

Size: 585 Bytes

Versions: 18

Compression:

Stored size: 585 Bytes

Contents

describe "Sending an email via the contact form", type: :feature do
  before { sign_in(:user) }

  it "sends mail" do
    visit '/'
    click_link "Contact"
    expect(page).to have_content "Contact Form"
    fill_in "Your Name", with: "Test McPherson"
    fill_in "Your Email", with: "archivist1@example.com"
    fill_in "Message", with: "I am contacting you regarding ScholarSphere."
    fill_in "Subject", with: "My Subject is Cool"
    select "Depositing content", from: "Issue Type"
    click_button "Send"
    expect(page).to have_content "Thank you for your message!"
  end
end

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
hyrax-1.1.1 spec/features/contact_form_spec.rb
hyrax-1.1.0 spec/features/contact_form_spec.rb
sufia-7.4.1 spec/features/contact_form_spec.rb
hyrax-1.0.5 spec/features/contact_form_spec.rb
sufia-7.4.0 spec/features/contact_form_spec.rb
hyrax-1.0.4 spec/features/contact_form_spec.rb
hyrax-1.0.3 spec/features/contact_form_spec.rb
hyrax-1.0.2 spec/features/contact_form_spec.rb
hyrax-1.0.1 spec/features/contact_form_spec.rb
hyrax-1.0.0.rc2 spec/features/contact_form_spec.rb
sufia-7.3.1 spec/features/contact_form_spec.rb
hyrax-1.0.0.rc1 spec/features/contact_form_spec.rb
sufia-7.3.0 spec/features/contact_form_spec.rb
sufia-7.3.0.rc3 spec/features/contact_form_spec.rb
sufia-7.3.0.rc2 spec/features/contact_form_spec.rb
sufia-7.3.0.rc1 spec/features/contact_form_spec.rb
test_hyrax-0.0.1.alpha spec/features/contact_form_spec.rb
sufia-7.2.0 spec/features/contact_form_spec.rb