Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove tests for no javascript feedback #4135

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions spec/features/connection_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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: '[email protected]')
click_button 'Send'
end
expect(page).to have_css(
'div.alert-success',
text: 'Thank you! Your connection problem report has been sent.'
)
end
end
20 changes: 0 additions & 20 deletions spec/features/feedback_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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: "[email protected]")
click_button "Send"
end
expect(page).to have_css("div.alert-success", text: "Thank you! Your feedback has been sent.")
end
end