Sha256: 65d62f69f8ff6f334d0a186899c411b8547edce8a6a9587694d6fa8ba99bc7f7
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
When(/^I search for the audio element by "([^"]*)"$/) do |how| @element = @avpage.send "audio_#{how}_element" end When(/^I search for the audio element by "([^"]*)" and "([^"]*)"$/) do |param1, param2| @element = @avpage.send "audio_#{param1}_#{param2}_element" end Then(/^I should know the audio is not autoplay$/) do expect(@element).not_to be_autoplay end Then(/^I should know that the controls are displayed$/) do expect(@element).to have_controls end Then(/^I should know that the audio is paused$/) do expect(@element).to be_paused end Then(/^I should know that its volume is (\d+)$/) do |volume| expect(@element.volume).to eql volume.to_f end Given(/^I am on the audio video page$/) do @avpage = visit AudioVideoPage end When(/^I retrieve the audio element from the page$/) do @element = @avpage.audio_id_element end Then(/^I should know that it has not ended$/) do expect(@element).not_to be_ended end Then(/^I should know that it is not seeking$/) do expect(@element).not_to be_seeking end Then(/^I should know that it is not in a loop$/) do expect(@element).not_to be_loop end Then(/^I should know that it is muted$/) do expect(@element).not_to be_muted end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
druid-s-1.0.0 | features/step_definations/audio_steps.rb |
druid-ts-1.2.6 | features/step_definations/audio_steps.rb |
druid-ts-1.2.5 | features/step_definations/audio_steps.rb |