Skip to content

Commit

Permalink
Skip flappy test (#3003)
Browse files Browse the repository at this point in the history
  • Loading branch information
corylown authored Jan 12, 2024
1 parent f04ee7c commit ad0db19
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion spec/features/javascript/blocks/solr_documents_block_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@
expect(thumb['src']).to match(%r{xd327cm9378_05_0002/full})
end

it 'allows you toggle visibility of solr documents', js: true do
it 'allows you to toggle visibility of solr documents', js: true do
skip('Passes locally, but soooo flakey in CI.') if ENV['CI']
fill_in_solr_document_block_typeahead_field with: 'dq287tq6352'

within(:css, '.card') do
Expand All @@ -98,6 +99,9 @@
select('Title', from: 'primary-caption-field')
end

# this seems silly, but also seems to help with the flappy-ness of this spec
expect(find_field('Primary caption', checked: true)).to be_checked

save_page

expect(page).to have_selector '.items-block .box', count: 1, visible: true
Expand All @@ -110,7 +114,11 @@
uncheck('Primary caption')
end

# this seems silly, but also seems to help with the flappy-ness of this spec
expect(find_field('Primary caption', checked: false)).not_to be_checked

save_page

expect(page).to have_selector '.items-block .box', count: 1, visible: true
expect(page).to have_no_content '[World map]'
end
Expand Down

0 comments on commit ad0db19

Please sign in to comment.