Module: PendingRequestsPopUp

Includes:
PageObject
Defined in:
lib/sakai-oae-test-api/pop_up_dialogs.rb

Overview

The Pending Requests Pop-Up for Groups/Courses/Projects

Instance Method Summary collapse

Methods included from PageObject

#method_missing, #name_li, #name_link

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class PageObject

Instance Method Details

#add_as_member(name) ⇒ Object Also known as: add_as_a_member

Clicks the “Add as a member” link for the specified user.



961
962
963
964
# File 'lib/sakai-oae-test-api/pop_up_dialogs.rb', line 961

def add_as_member(name)
  self.div(:class=>"fl-force-left joinrequests_details",:text=>/#{Regexp.escape(name)}/).button(:text=>"Add as a member").click
  self.linger_for_ajax(3)
end

#doneObject



974
975
976
977
# File 'lib/sakai-oae-test-api/pop_up_dialogs.rb', line 974

def done
  self.done_button
  self.linger_for_ajax(3)
end

#ignore(name) ⇒ Object

Clicks the “ignore” button for the specified user



969
970
971
972
# File 'lib/sakai-oae-test-api/pop_up_dialogs.rb', line 969

def ignore(name)
  self.div(:class=>"fl-force-left joinrequests_details",:text=>/#{Regexp.escape(name)}/).button(:text=>"Ignore").click
  self.linger_for_ajax(3)
end