Sha256: dd30768b2b30035656c23709bf377596de92146969e03826c39ab605cad8b32c
Contents?: true
Size: 1.91 KB
Versions: 2
Compression:
Stored size: 1.91 KB
Contents
When /^he should see a form to join the external room$/i do within(form_selector(external_bigbluebutton_server_rooms_path(@server), 'post')) do has_element("input", { :name => 'meeting', :type => 'hidden', :value => @room.meetingid }) has_element("input", { :name => 'user[name]', :type => 'text' }) has_element("input", { :name => 'user[password]', :type => 'password' }) end end When /^he should see his name in the user name input$/i do case current_url when /\/invite$/ # normal rooms form = form_selector(join_bigbluebutton_server_room_path(@server, @room), 'post') when /\/external(\?.*)?/ # external rooms form = form_selector(external_bigbluebutton_server_rooms_path(@server), 'post') end within(form) do has_element("input", { :name => 'user[name]', :type => 'text', :value => @user.name }) end end When /^he should( not)? join the conference room$/i do |negate| if negate.nil? current_url.should match(/\/client\/BigBlueButton\.html/) # BBB client page else current_url.should_not match(/\/client\/BigBlueButton\.html/) end end When /^enters his name and the (.+) password$/i do |role| name = @user.nil? ? "Anonymous" : @user.name password = role.downcase.to_sym == :moderator ? @room.moderator_password : @room.attendee_password fill_in("user[name]", :with => name) fill_in("user[password]", :with => password) end When /^enters only the (.+) password$/ do |role| password = role.downcase.to_sym == :moderator ? @room.moderator_password : @room.attendee_password fill_in("user[password]", :with => password) fill_in("user[name]", :with => "") end When /^enters only the user name$/ do name = @user.nil? ? "Anonymous" : @user.name fill_in("user[name]", :with => name) end When /^the password field was pre-filled with the attendee password$/ do has_element("input", { :name => 'user[password]', :type => 'password', :value => @room.attendee_password }) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bigbluebutton_rails-1.0.0 | spec/rails_app/features/step_definitions/join_rooms_steps.rb |
bigbluebutton_rails-0.1.0 | spec/rails_app/features/step_definitions/join_rooms_steps.rb |