Skip to content

Commit

Permalink
Add a test to check if the Sir Trevor icons loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
taylor-steve committed Oct 21, 2024
1 parent c867eec commit fde9f05
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/features/javascript/block_controls_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
# click to add widget
click_add_widget

# Check if the Sir Trevor icons are loading. They are in the same SVG so a single check should be sufficient.
within('.st-block-replacer') do
href_value = find('use')['xlink:href']
expect(href_value).not_to eq('undefined#add-block')
end

within('.spotlight-block-controls') do
expect(page).to have_css('.st-controls-group', count: 2)

Expand Down

0 comments on commit fde9f05

Please sign in to comment.