Class: CourseOfferingEdit

Inherits:
BasePage
  • Object
show all
Defined in:
lib/sambal-kuali/pages/course_offering_edit.rb

Constant Summary collapse

FORMAT_COLUMN =
0
GRADE_ROSTER_LEVEL_COLUMN =
1
FINAL_EXAM_COLUMN =
2
ACTIONS_COLUMN =
3
ID_COLUMN =
0
NAME_COLUMN =
1
AFFILIATION_COLUMN =
2
ORG_ID_COLUMN =
0
ORG_NAME_COLUMN =
1
ORG_ACTIONS_COLUMN =
2

Instance Method Summary collapse

Methods inherited from BasePage

frame_element, green_search_buttons, validation_elements, wrapper_elements

Instance Method Details

#delete_org(id) ⇒ Object



96
97
98
99
# File 'lib/sambal-kuali/pages/course_offering_edit.rb', line 96

def delete_org(id)
  target_orgs_row(id).button(text: "delete").click
  loading.wait_while_present
end

#delete_person(id) ⇒ Object



77
78
79
80
# File 'lib/sambal-kuali/pages/course_offering_edit.rb', line 77

def delete_person(id)
  target_person_row(id).button.click
  loading.wait_while_present
end

#final_exam_driver(format) ⇒ Object



39
40
41
# File 'lib/sambal-kuali/pages/course_offering_edit.rb', line 39

def final_exam_driver(format)
  delivery_format_row(format).cells[FINAL_EXAM_COLUMN].text
end

#get_affiliation(id) ⇒ Object



69
70
71
# File 'lib/sambal-kuali/pages/course_offering_edit.rb', line 69

def get_affiliation(id)
  target_person_row(id).cells[AFFILIATION_COLUMN].select.selected_options[0].text  #cell is hard-coded, getting this value was very problematic
end

#get_org_name(id) ⇒ Object



92
93
94
# File 'lib/sambal-kuali/pages/course_offering_edit.rb', line 92

def get_org_name(id)
  target_orgs_row(id).cells[NAME_COLUMN].text  #cell is hard-coded, getting this value was very problematic
end

#get_person_name(id) ⇒ Object



73
74
75
# File 'lib/sambal-kuali/pages/course_offering_edit.rb', line 73

def get_person_name(id)
  target_person_row(id).cells[NAME_COLUMN].text  #cell is hard-coded, getting this value was very problematic
end

#grade_roster_level(format) ⇒ Object



35
36
37
# File 'lib/sambal-kuali/pages/course_offering_edit.rb', line 35

def grade_roster_level(format)
  delivery_format_row(format).cells[GRADE_ROSTER_LEVEL_COLUMN].select().selected_options[0].text
end

#update_affiliation(id, affiliation) ⇒ Object



65
66
67
# File 'lib/sambal-kuali/pages/course_offering_edit.rb', line 65

def update_affiliation(id, affiliation)
  target_person_row(id).select(index: 0).select affiliation
end