diff --git a/spec/features/connection_form_spec.rb b/spec/features/connection_form_spec.rb index c6e242843..cd983982a 100644 --- a/spec/features/connection_form_spec.rb +++ b/spec/features/connection_form_spec.rb @@ -30,28 +30,3 @@ ) end end - -RSpec.feature 'Connection form (no js)' do - before do - stub_article_service(docs: StubArticleService::SAMPLE_RESULTS) - visit articles_path - end - - scenario 'connection form should be shown filled out and submitted' do - find('.connection-problem').click - expect(page).to have_css('#connection-form', visible: true) - expect(page).to have_css('a', text: 'Cancel') - within 'form.feedback-form' do - fill_in('resource_name', with: 'Resource name') - fill_in('problem_url', with: 'http://www.example.com/yolo') - fill_in('message', with: 'This is only a test') - fill_in('name', with: 'Ronald McDonald') - fill_in('to', with: 'test@kittenz.eu') - click_button 'Send' - end - expect(page).to have_css( - 'div.alert-success', - text: 'Thank you! Your connection problem report has been sent.' - ) - end -end diff --git a/spec/features/feedback_form_spec.rb b/spec/features/feedback_form_spec.rb index 721c8c1c2..9f8b00cbc 100644 --- a/spec/features/feedback_form_spec.rb +++ b/spec/features/feedback_form_spec.rb @@ -25,23 +25,3 @@ expect(page).to have_css("div.alert-success", text: "Thank you! Your feedback has been sent.") end end - -RSpec.feature "Feedback form (no js)" do - before do - visit root_path - end - - scenario "feedback form should be shown filled out and submitted" do - click_link "Feedback" - expect(page).to have_css("#feedback-form", visible: true) - expect(page).to have_css("#feedback_message", count: 1) - expect(page).to have_css("a", text: "Cancel") - within "form.feedback-form" do - fill_in("message", with: "This is only a test") - fill_in("name", with: "Ronald McDonald") - fill_in("to", with: "test@kittenz.eu") - click_button "Send" - end - expect(page).to have_css("div.alert-success", text: "Thank you! Your feedback has been sent.") - end -end