Class: ActivityOfferingCluster

Inherits:
Object
  • Object
show all
Includes:
DataFactory, DateFactory, Foundry, StringFactory, Workflows
Defined in:
lib/sambal-kuali/data_objects/activity_offering_cluster.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Workflows

#go_to_academic_calendar, #go_to_calendar_search, #go_to_create_course_offerings, #go_to_create_population, #go_to_display_schedule_of_classes, #go_to_holiday_calendar, #go_to_manage_course_offerings, #go_to_manage_population, #go_to_perform_rollover, #go_to_rollover_details, #log_in, #logged_in_user

Constructor Details

#initialize(browser, opts = {}) ⇒ ActivityOfferingCluster

Returns a new instance of ActivityOfferingCluster.



19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/sambal-kuali/data_objects/activity_offering_cluster.rb', line 19

def initialize(browser, opts={})
  @browser = browser

  defaults = {
      :is_default=>false,
      :private_name=>"test1_pri",
      :published_name=>"test1_pub",
      :is_valid=>true,
      :expected_msg=>"",
      :assigned_ao_list=>["A","AA","AB"]
  }
  options = defaults.merge(opts)
  set_options(options)
end

Instance Attribute Details

#assigned_ao_listObject

Returns the value of attribute assigned_ao_list.



9
10
11
# File 'lib/sambal-kuali/data_objects/activity_offering_cluster.rb', line 9

def assigned_ao_list
  @assigned_ao_list
end

#expected_msgObject

Returns the value of attribute expected_msg.



9
10
11
# File 'lib/sambal-kuali/data_objects/activity_offering_cluster.rb', line 9

def expected_msg
  @expected_msg
end

#is_defaultObject Also known as: default?

Returns the value of attribute is_default.



9
10
11
# File 'lib/sambal-kuali/data_objects/activity_offering_cluster.rb', line 9

def is_default
  @is_default
end

#is_validObject Also known as: valid?

Returns the value of attribute is_valid.



9
10
11
# File 'lib/sambal-kuali/data_objects/activity_offering_cluster.rb', line 9

def is_valid
  @is_valid
end

#private_nameObject

Returns the value of attribute private_name.



9
10
11
# File 'lib/sambal-kuali/data_objects/activity_offering_cluster.rb', line 9

def private_name
  @private_name
end

#published_nameObject

Returns the value of attribute published_name.



9
10
11
# File 'lib/sambal-kuali/data_objects/activity_offering_cluster.rb', line 9

def published_name
  @published_name
end

Instance Method Details

#createObject



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/sambal-kuali/data_objects/activity_offering_cluster.rb', line 34

def create
  on ManageRegistrationGroups do |page|

    page.private_name.set @private_name
    page.published_name.set @published_name
    page.create_new_cluster_button
    puts page.ao_table.rows.count
    puts page.cluster_list_row_name_text("test1pri")
    page.ao_cluster_select.select("test1")
    page.cluster_list_row_generate_reg_groups("test1")
    puts page.target_ao_row("A").cells[1].text
    puts page.target_ao_row("A").cells[2].text
    page.select_ao_row("A")
    page.ao_cluster_select.select("test1pub")
    page.ao_cluster_assign_button
  end
end