Module: Workflows
- Included in:
- AcademicCalendar, ActivityOffering, ActivityOfferingCluster, CourseOffering, DeliveryLogistics, HolidayCalendar, Personnel, Population, Rollover, ScheduleOfClasses, SeatPool
- Defined in:
- lib/sambal-kuali/workflows.rb
Overview
Helper methods that don’t properly belong elsewhere. This is a sort of “catch all” Module.
Instance Method Summary collapse
- #go_to_academic_calendar ⇒ Object
- #go_to_calendar_search ⇒ Object
- #go_to_create_course_offerings ⇒ Object
- #go_to_create_population ⇒ Object
- #go_to_display_schedule_of_classes ⇒ Object
- #go_to_holiday_calendar ⇒ Object
- #go_to_manage_course_offerings ⇒ Object
- #go_to_manage_population ⇒ Object
- #go_to_perform_rollover ⇒ Object
-
#go_to_rollover_details ⇒ Object
Site Navigation helpers…
- #log_in(user, pwd) ⇒ Object
-
#logged_in_user ⇒ Object
Helper methods…
Instance Method Details
#go_to_academic_calendar ⇒ Object
75 76 77 78 79 80 81 82 |
# File 'lib/sambal-kuali/workflows.rb', line 75 def go_to_academic_calendar visit MainMenu do |page| page.enrollment_home end on Enrollment do |page| page.create_academic_calendar end end |
#go_to_calendar_search ⇒ Object
84 85 86 87 88 89 90 91 |
# File 'lib/sambal-kuali/workflows.rb', line 84 def go_to_calendar_search visit MainMenu do |page| page.enrollment_home end on Enrollment do |page| page.search_for_calendar_or_term end end |
#go_to_create_course_offerings ⇒ Object
93 94 95 96 97 98 99 100 |
# File 'lib/sambal-kuali/workflows.rb', line 93 def go_to_create_course_offerings visit MainMenu do |page| page.enrollment_home end on Enrollment do |page| page.create_course_offerings end end |
#go_to_create_population ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/sambal-kuali/workflows.rb', line 25 def go_to_create_population visit MainMenu do |page| page.enrollment_home end on Enrollment do |page| page.manage_populations end on ManagePopulations do |page| page.create_new end end |
#go_to_display_schedule_of_classes ⇒ Object
55 56 57 58 59 60 61 62 63 |
# File 'lib/sambal-kuali/workflows.rb', line 55 def go_to_display_schedule_of_classes visit MainMenu do |page| page.enrollment_home end on Enrollment do |page| page.schedule_of_classes end end |
#go_to_holiday_calendar ⇒ Object
65 66 67 68 69 70 71 72 |
# File 'lib/sambal-kuali/workflows.rb', line 65 def go_to_holiday_calendar visit MainMenu do |page| page.enrollment end on Enrollment do |page| page.create_holiday_calendar end end |
#go_to_manage_course_offerings ⇒ Object
46 47 48 49 50 51 52 53 |
# File 'lib/sambal-kuali/workflows.rb', line 46 def go_to_manage_course_offerings visit MainMenu do |page| page.enrollment_home end on Enrollment do |page| page.manage_course_offerings end end |
#go_to_manage_population ⇒ Object
37 38 39 40 41 42 43 44 |
# File 'lib/sambal-kuali/workflows.rb', line 37 def go_to_manage_population visit MainMenu do |page| page.enrollment_home end on Enrollment do |page| page.manage_populations end end |
#go_to_perform_rollover ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/sambal-kuali/workflows.rb', line 16 def go_to_perform_rollover visit MainMenu do |page| page.enrollment_home end on Enrollment do |page| page.perform_rollover end end |
#go_to_rollover_details ⇒ Object
Site Navigation helpers…
6 7 8 9 10 11 12 13 |
# File 'lib/sambal-kuali/workflows.rb', line 6 def go_to_rollover_details visit MainMenu do |page| page.enrollment_home end on Enrollment do |page| page.view_rollover_details end end |
#log_in(user, pwd) ⇒ Object
115 116 117 118 119 |
# File 'lib/sambal-kuali/workflows.rb', line 115 def log_in(user, pwd) on Login do |page| page.login_with user, pwd end end |
#logged_in_user ⇒ Object
Helper methods…
103 104 105 106 107 108 109 110 111 112 113 |
# File 'lib/sambal-kuali/workflows.rb', line 103 def logged_in_user user = "" on Header do |page| begin user = page.logged_in_user rescue Watir::Exception::UnknownObjectException user = "No One" end end user end |