Skip to content

Commit

Permalink
Merge pull request #1763 from tactilenews/fix-flaky-onboarding-channe…
Browse files Browse the repository at this point in the history
…ls-spec

fix: flaky spec
  • Loading branch information
mattwr18 authored Jan 9, 2024
2 parents 1e00c3a + 9b4d412 commit e74ceb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/system/requests/sending_images_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/system/settings/onboarding_channels_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit e74ceb0

Please sign in to comment.