You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/spec/features/example_page_spec.rb

16 lines
324 B
Ruby

require 'rails_helper'
feature "Example page with embedded player", :js => true do
let!(:asciicast) { create(:asciicast) }
scenario 'Visiting' do
visit example_asciicast_path(asciicast)
within_frame "asciicast-iframe-#{asciicast.id}" do
expect(page).to have_selector('.play-button')
end
end
end