diff --git a/spec/system/requests/sending_images_spec.rb b/spec/system/requests/sending_images_spec.rb index 8730d790c..2118554f5 100644 --- a/spec/system/requests/sending_images_spec.rb +++ b/spec/system/requests/sending_images_spec.rb @@ -25,7 +25,7 @@ click_button 'Frage an die Community senden' message = page.find('textarea[name="request[text]"]').evaluate_script('this.validationMessage') expect(message).to eq 'Please fill out this field.' - expect(page).to have_current_path(new_request_path(as: user)) + expect(page).to have_current_path(new_request_path, ignore_query: true) # with no text, with file visit new_request_path(as: user) @@ -55,7 +55,7 @@ click_button 'Frage an die Community senden' - expect(page).to have_current_path(new_request_path(as: user)) + expect(page).to have_current_path(new_request_path, ignore_query: true) expect(page).to have_content('Kein gültiges Bildformat. Bitte senden Sie Bilder als jpg, png oder gif.') # Image file diff --git a/spec/system/settings/onboarding_channels_spec.rb b/spec/system/settings/onboarding_channels_spec.rb index d9dbec141..300fc7fb6 100644 --- a/spec/system/settings/onboarding_channels_spec.rb +++ b/spec/system/settings/onboarding_channels_spec.rb @@ -23,7 +23,7 @@ end click_on 'Speichern' - expect(page).to have_current_path(settings_path(as: admin)) + expect(page).to have_current_path(settings_path, ignore_query: true) within('.OnboardingChannelsCheckboxes') do Setting.channels.keys.map(&:to_sym).each do |key|