ole-qa-framework 3.1.1 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +14 -1
- data/lib/common/page.rb +3 -0
- data/lib/ole_qa_framework/VERSION.rb +1 -1
- data/lib/olels/common/batch_profile.rb +53 -0
- data/lib/olels/objects/batch_data_mapping_line.rb +41 -0
- data/lib/olels/objects/batch_delete_field_line.rb +26 -0
- data/lib/olels/objects/batch_rename_field_line.rb +32 -0
- data/lib/olels/objects/export_filter_line.rb +28 -0
- data/lib/olels/objects/import_defaults_line.rb +27 -0
- data/{spec/olels/main_menu_spec.rb → lib/olels/objects/import_match_line.rb} +7 -19
- data/lib/olels/objects/import_pf_line.rb +27 -0
- data/lib/olels/pages/batch_export_profile.rb +82 -0
- data/lib/olels/pages/batch_import_profile.rb +136 -0
- data/lib/olels/pages/batch_job_details.rb +48 -0
- data/lib/olels/pages/batch_process.rb +47 -0
- data/lib/olels/pages/batch_profile_lookup.rb +56 -0
- data/lib/olels/pages/batch_type_lookup.rb +52 -0
- data/spec/common/page_spec.rb +30 -1
- data/spec/modules/qa_page_helpers_spec.rb +1 -1
- metadata +16 -98
- data/spec/olefs/accounting_line_spec.rb +0 -64
- data/spec/olefs/building_lookup_spec.rb +0 -45
- data/spec/olefs/copies_line_spec.rb +0 -56
- data/spec/olefs/edocs_spec.rb +0 -75
- data/spec/olefs/exception_notes_line_spec.rb +0 -46
- data/spec/olefs/invoice_current_item_spec.rb +0 -48
- data/spec/olefs/invoice_line_item_spec.rb +0 -80
- data/spec/olefs/invoice_line_spec.rb +0 -64
- data/spec/olefs/invoice_spec.rb +0 -91
- data/spec/olefs/line_item_spec.rb +0 -129
- data/spec/olefs/load_report_spec.rb +0 -56
- data/spec/olefs/load_summary_lookup_spec.rb +0 -53
- data/spec/olefs/lookup_spec.rb +0 -50
- data/spec/olefs/main_menu_spec.rb +0 -34
- data/spec/olefs/notes_line_spec.rb +0 -53
- data/spec/olefs/payment_request_spec.rb +0 -43
- data/spec/olefs/processing_line_spec.rb +0 -45
- data/spec/olefs/purap_document_spec.rb +0 -80
- data/spec/olefs/purchase_order_spec.rb +0 -63
- data/spec/olefs/receipt_notes_line_spec.rb +0 -45
- data/spec/olefs/receive_spec.rb +0 -51
- data/spec/olefs/receiving_line_spec.rb +0 -87
- data/spec/olefs/requisition_spec.rb +0 -71
- data/spec/olefs/vendor_lookup_spec.rb +0 -49
- data/spec/olels/access_info_line_spec.rb +0 -40
- data/spec/olels/bib_editor_spec.rb +0 -87
- data/spec/olels/control_006_line_spec.rb +0 -41
- data/spec/olels/control_007_line_spec.rb +0 -41
- data/spec/olels/data_line_spec.rb +0 -44
- data/spec/olels/describe_workbench_spec.rb +0 -75
- data/spec/olels/editor_spec.rb +0 -68
- data/spec/olels/edocs_spec.rb +0 -50
- data/spec/olels/holdings_note_spec.rb +0 -41
- data/spec/olels/instance_editor_spec.rb +0 -73
- data/spec/olels/item_editor_spec.rb +0 -96
- data/spec/olels/item_note_spec.rb +0 -41
- data/spec/olels/loan_spec.rb +0 -104
- data/spec/olels/lookup_spec.rb +0 -38
- data/spec/olels/ownership_extent_line_spec.rb +0 -48
- data/spec/olels/ownership_note_spec.rb +0 -42
- data/spec/olels/patron_address_line_spec.rb +0 -55
- data/spec/olels/patron_email_line_spec.rb +0 -44
- data/spec/olels/patron_lookup_spec.rb +0 -54
- data/spec/olels/patron_phone_line_spec.rb +0 -47
- data/spec/olels/patron_spec.rb +0 -93
- data/spec/olels/return_spec.rb +0 -72
- data/spec/olels/staff_upload_spec.rb +0 -55
@@ -1,41 +0,0 @@
|
|
1
|
-
# Copyright 2005-2013 The Kuali Foundation
|
2
|
-
#
|
3
|
-
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at:
|
6
|
-
#
|
7
|
-
# http://www.opensource.org/licenses/ecl2.php
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'rspec'
|
16
|
-
require 'spec_helper'
|
17
|
-
|
18
|
-
describe 'An OLELS Holdings Note object' do
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@holdings_note = OLE_QA::Framework::OLELS::Holdings_Note.new(@ole,1)
|
23
|
-
end
|
24
|
-
|
25
|
-
after :all do
|
26
|
-
@ole.quit
|
27
|
-
end
|
28
|
-
|
29
|
-
it 'should create a new instance' do
|
30
|
-
@holdings_note.class.should == OLE_QA::Framework::OLELS::Holdings_Note
|
31
|
-
@holdings_note.class.superclass.should == OLE_QA::Framework::Line_Object
|
32
|
-
end
|
33
|
-
|
34
|
-
it 'should have holdings note elements' do
|
35
|
-
elements = @holdings_note.methods
|
36
|
-
elements.include?(:note_type_selector)
|
37
|
-
elements.include?(:note_field)
|
38
|
-
elements.include?(:add_button)
|
39
|
-
elements.include?(:remove_button)
|
40
|
-
end
|
41
|
-
end
|
@@ -1,73 +0,0 @@
|
|
1
|
-
# Copyright 2005-2013 The Kuali Foundation
|
2
|
-
#
|
3
|
-
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at:
|
6
|
-
#
|
7
|
-
# http://www.opensource.org/licenses/ecl2.php
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'rspec'
|
16
|
-
require 'spec_helper'
|
17
|
-
|
18
|
-
describe 'An OLELS Instance Editor page' do
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@browser = @ole.browser
|
23
|
-
@instance_editor = OLE_QA::Framework::OLELS::Instance_Editor.new(@ole)
|
24
|
-
end
|
25
|
-
|
26
|
-
after :all do
|
27
|
-
@ole.quit
|
28
|
-
end
|
29
|
-
|
30
|
-
it 'should create a new instance' do
|
31
|
-
@instance_editor.class.should == OLE_QA::Framework::OLELS::Instance_Editor
|
32
|
-
@instance_editor.class.superclass.should == OLE_QA::Framework::OLELS::Editor
|
33
|
-
end
|
34
|
-
|
35
|
-
it 'should have instance editor elements' do
|
36
|
-
elements = @instance_editor.methods
|
37
|
-
elements.include?(:location_toggle).should be_true
|
38
|
-
elements.include?(:location_field).should be_true
|
39
|
-
elements.include?(:call_number_toggle).should be_true
|
40
|
-
elements.include?(:prefix_field).should be_true
|
41
|
-
elements.include?(:call_number_field).should be_true
|
42
|
-
elements.include?(:shelving_order_field).should be_true
|
43
|
-
elements.include?(:call_number_type_selector).should be_true
|
44
|
-
elements.include?(:call_number_browse_button).should be_true
|
45
|
-
elements.include?(:ownership_extent_toggle).should be_true
|
46
|
-
elements.include?(:extended_information_toggle).should be_true
|
47
|
-
elements.include?(:receipt_status_selector).should be_true
|
48
|
-
elements.include?(:holding_notes_toggle).should be_true
|
49
|
-
elements.include?(:holdings_notes_toggle).should be_true
|
50
|
-
# Read-Only Elements (non-iterative fields, no input required)
|
51
|
-
elements.should include(:readonly_edit_button)
|
52
|
-
elements.should include(:readonly_location)
|
53
|
-
elements.should include(:readonly_prefix)
|
54
|
-
elements.should include(:readonly_call_number)
|
55
|
-
elements.should include(:readonly_call_number_type)
|
56
|
-
elements.should include(:readonly_shelving_order)
|
57
|
-
elements.should include(:readonly_created_by)
|
58
|
-
elements.should include(:readonly_created_date)
|
59
|
-
end
|
60
|
-
|
61
|
-
it 'should have instance editor functions' do
|
62
|
-
end
|
63
|
-
|
64
|
-
it 'should have instance editor lines' do
|
65
|
-
lines = @instance_editor.lines
|
66
|
-
lines.include?(:ownership_extent_line).should be_true
|
67
|
-
lines.include?(:access_info_line).should be_true
|
68
|
-
lines.include?(:holdings_note_line).should be_true
|
69
|
-
@instance_editor.ownership_extent_line.should be_an_instance_of(OLE_QA::Framework::OLELS::Ownership_Extent_Line)
|
70
|
-
@instance_editor.access_info_line.should be_an_instance_of(OLE_QA::Framework::OLELS::Access_Info_Line)
|
71
|
-
@instance_editor.holdings_note_line.should be_an_instance_of(OLE_QA::Framework::OLELS::Holdings_Note)
|
72
|
-
end
|
73
|
-
end
|
@@ -1,96 +0,0 @@
|
|
1
|
-
# Copyright 2005-2013 The Kuali Foundation
|
2
|
-
#
|
3
|
-
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at:
|
6
|
-
#
|
7
|
-
# http://www.opensource.org/licenses/ecl2.php
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'rspec'
|
16
|
-
require 'spec_helper'
|
17
|
-
|
18
|
-
describe 'An OLELS Item Editor page' do
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@browser = @ole.browser
|
23
|
-
@item_editor = OLE_QA::Framework::OLELS::Item_Editor.new(@ole)
|
24
|
-
end
|
25
|
-
|
26
|
-
after :all do
|
27
|
-
@ole.quit
|
28
|
-
end
|
29
|
-
|
30
|
-
it 'should create a new instance' do
|
31
|
-
@item_editor.class.should == OLE_QA::Framework::OLELS::Item_Editor
|
32
|
-
@item_editor.class.superclass.should == OLE_QA::Framework::OLELS::Editor
|
33
|
-
end
|
34
|
-
|
35
|
-
it 'should have item editor elements' do
|
36
|
-
elements = @item_editor.methods
|
37
|
-
# Holdings Location/Call Number Information
|
38
|
-
elements.include?(:holdings_location_field).should be_true
|
39
|
-
elements.include?(:holdings_prefix_field).should be_true
|
40
|
-
elements.include?(:holdings_shelving_order_field).should be_true
|
41
|
-
elements.include?(:holdings_call_number_field).should be_true
|
42
|
-
elements.include?(:holdings_call_number_type_field).should be_true
|
43
|
-
# Item Location/Call Number Information
|
44
|
-
elements.include?(:location_field).should be_true
|
45
|
-
elements.include?(:prefix_field).should be_true
|
46
|
-
elements.include?(:shelving_order_field).should be_true
|
47
|
-
elements.include?(:call_number_field).should be_true
|
48
|
-
elements.include?(:call_number_type_selector).should be_true
|
49
|
-
elements.include?(:browse_button).should be_true
|
50
|
-
# Item Information
|
51
|
-
elements.include?(:item_id_field).should be_true
|
52
|
-
elements.include?(:barcode_field).should be_true
|
53
|
-
elements.include?(:barcode_arsl_field).should be_true
|
54
|
-
elements.include?(:former_identifiers_field).should be_true
|
55
|
-
elements.include?(:statistical_searching_codes_selector).should be_true
|
56
|
-
elements.include?(:temp_item_type_selector).should be_true
|
57
|
-
elements.include?(:enumeration_field).should be_true
|
58
|
-
elements.include?(:chronology_field).should be_true
|
59
|
-
elements.include?(:copy_number_field).should be_true
|
60
|
-
elements.include?(:access_info_uri_field).should be_true
|
61
|
-
elements.include?(:item_type_selector).should be_true
|
62
|
-
elements.include?(:number_of_pieces_field).should be_true
|
63
|
-
# Acquisition Information
|
64
|
-
elements.include?(:po_line_item_id_field).should be_true
|
65
|
-
elements.include?(:vendor_line_item_id_field).should be_true
|
66
|
-
elements.include?(:fund_field).should be_true
|
67
|
-
elements.include?(:price_field).should be_true
|
68
|
-
elements.include?(:donor_public_display_field).should be_true
|
69
|
-
elements.include?(:donor_note_field).should be_true
|
70
|
-
# Circulation Information
|
71
|
-
elements.include?(:item_status_selector).should be_true
|
72
|
-
elements.include?(:checkin_note_field).should be_true
|
73
|
-
elements.include?(:item_effective_status_date).should be_true
|
74
|
-
elements.include?(:fast_add_checkbox).should be_true
|
75
|
-
elements.include?(:staff_only_checkbox).should be_true
|
76
|
-
# Extended Information
|
77
|
-
elements.include?(:high_density_storage_field).should be_true
|
78
|
-
# Read-Only Elements (non-iterative elements requiring no input)
|
79
|
-
elements.should include(:readonly_edit_button)
|
80
|
-
elements.should include(:readonly_item_id)
|
81
|
-
elements.should include(:readonly_barcode)
|
82
|
-
elements.should include(:readonly_enumeration)
|
83
|
-
elements.should include(:readonly_chronology)
|
84
|
-
elements.should include(:readonly_copy_number)
|
85
|
-
elements.should include(:readonly_item_status)
|
86
|
-
elements.should include(:readonly_item_type)
|
87
|
-
elements.should include(:readonly_fast_add)
|
88
|
-
|
89
|
-
end
|
90
|
-
|
91
|
-
it 'should have an item note' do
|
92
|
-
lines = @item_editor.lines
|
93
|
-
lines.include?(:item_note).should be_true
|
94
|
-
@item_editor.item_note.should be_an_instance_of(OLE_QA::Framework::OLELS::Item_Note)
|
95
|
-
end
|
96
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
# Copyright 2005-2013 The Kuali Foundation
|
2
|
-
#
|
3
|
-
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at:
|
6
|
-
#
|
7
|
-
# http://www.opensource.org/licenses/ecl2.php
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'rspec'
|
16
|
-
require 'spec_helper'
|
17
|
-
|
18
|
-
describe 'My behaviour' do
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@item_note = OLE_QA::Framework::OLELS::Item_Note.new(@ole,1)
|
23
|
-
end
|
24
|
-
|
25
|
-
after :all do
|
26
|
-
@ole.quit
|
27
|
-
end
|
28
|
-
|
29
|
-
it 'should create a new instance' do
|
30
|
-
@item_note.class.should == OLE_QA::Framework::OLELS::Item_Note
|
31
|
-
@item_note.class.superclass.should == OLE_QA::Framework::Line_Object
|
32
|
-
end
|
33
|
-
|
34
|
-
it 'should have item note elements' do
|
35
|
-
elements = @item_note.elements
|
36
|
-
elements.include?(:note_type_selector).should be_true
|
37
|
-
elements.include?(:note_field).should be_true
|
38
|
-
elements.include?(:add_button).should be_true
|
39
|
-
elements.include?(:remove_button).should be_true
|
40
|
-
end
|
41
|
-
end
|
data/spec/olels/loan_spec.rb
DELETED
@@ -1,104 +0,0 @@
|
|
1
|
-
# Copyright 2005-2013 The Kuali Foundation
|
2
|
-
#
|
3
|
-
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at:
|
6
|
-
#
|
7
|
-
# http://www.opensource.org/licenses/ecl2.php
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'rspec'
|
16
|
-
require 'spec_helper'
|
17
|
-
|
18
|
-
describe 'An OLELS Loan page' do
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@loan = OLE_QA::Framework::OLELS::Loan.new(@ole)
|
23
|
-
end
|
24
|
-
|
25
|
-
after :all do
|
26
|
-
@ole.quit
|
27
|
-
end
|
28
|
-
|
29
|
-
it 'should create a new instance' do
|
30
|
-
@loan.should be_an_instance_of(OLE_QA::Framework::OLELS::Loan)
|
31
|
-
@loan.class.superclass.should == OLE_QA::Framework::Page
|
32
|
-
end
|
33
|
-
|
34
|
-
it 'should have loan screen elements' do
|
35
|
-
elements = @loan.elements
|
36
|
-
elements.include?(:circulation_desk_selector).should be_true
|
37
|
-
elements.include?(:circulation_desk_yes).should be_true
|
38
|
-
elements.include?(:circulation_desk_no).should be_true
|
39
|
-
elements.include?(:patron_field).should be_true
|
40
|
-
elements.include?(:patron_search_button).should be_true
|
41
|
-
elements.include?(:item_field).should be_true
|
42
|
-
elements.include?(:item_search_button).should be_true
|
43
|
-
elements.include?(:fast_add_button).should be_true
|
44
|
-
elements.include?(:loan_popup_box).should be_true
|
45
|
-
elements.include?(:due_date_field).should be_true
|
46
|
-
elements.include?(:due_time_field).should be_true
|
47
|
-
elements.include?(:loan_button).should be_true
|
48
|
-
elements.include?(:do_not_loan_button).should be_true
|
49
|
-
elements.include?(:current_items_toggle).should be_true
|
50
|
-
elements.include?(:checked_out_items_toggle).should be_true
|
51
|
-
elements.include?(:loan_messages).should be_true
|
52
|
-
elements.include?(:return_button).should be_true
|
53
|
-
elements.include?(:header_close_button).should be_true
|
54
|
-
elements.include?(:header_clear_patron_button).should be_true
|
55
|
-
elements.include?(:header_alter_due_date_button).should be_true
|
56
|
-
elements.include?(:header_claims_return_button).should be_true
|
57
|
-
elements.include?(:header_renew_button).should be_true
|
58
|
-
elements.include?(:clear_patron_button).should be_true
|
59
|
-
elements.include?(:close_button).should be_true
|
60
|
-
elements.include?(:alter_due_date_button).should be_true
|
61
|
-
elements.include?(:claims_return_button).should be_true
|
62
|
-
elements.include?(:renew_button).should be_true
|
63
|
-
elements.include?(:patron_details_toggle).should be_true
|
64
|
-
elements.include?(:patron_name).should be_true
|
65
|
-
elements.include?(:patron_type).should be_true
|
66
|
-
elements.include?(:patron_preferred_address).should be_true
|
67
|
-
elements.include?(:patron_phone_number).should be_true
|
68
|
-
elements.include?(:patron_email).should be_true
|
69
|
-
end
|
70
|
-
|
71
|
-
it 'should include loan screen functions' do
|
72
|
-
functions = @loan.functions
|
73
|
-
functions.include?(:item_selector).should be_true
|
74
|
-
functions.include?(:item_barcode_link).should be_true
|
75
|
-
functions.include?(:item_title).should be_true
|
76
|
-
functions.include?(:item_author).should be_true
|
77
|
-
functions.include?(:item_location).should be_true
|
78
|
-
functions.include?(:item_call_number).should be_true
|
79
|
-
functions.include?(:item_number_of_renewals).should be_true
|
80
|
-
functions.include?(:item_due_date).should be_true
|
81
|
-
functions.include?(:item_claims_return_note).should be_true
|
82
|
-
functions.include?(:item_claims_return_date).should be_true
|
83
|
-
functions.include?(:co_item_selector).should be_true
|
84
|
-
functions.include?(:co_item_barcode_link).should be_true
|
85
|
-
functions.include?(:co_item_title).should be_true
|
86
|
-
functions.include?(:co_item_author).should be_true
|
87
|
-
functions.include?(:co_item_location).should be_true
|
88
|
-
functions.include?(:co_item_call_number).should be_true
|
89
|
-
functions.include?(:co_item_number_of_renewals).should be_true
|
90
|
-
functions.include?(:co_item_due_date).should be_true
|
91
|
-
functions.include?(:co_item_claims_return_note).should be_true
|
92
|
-
functions.include?(:co_item_claims_return_date).should be_true
|
93
|
-
end
|
94
|
-
|
95
|
-
it 'should open the loan screen via URL' do
|
96
|
-
main_menu = OLE_QA::Framework::OLELS::Main_Menu.new(@ole)
|
97
|
-
main_menu.open
|
98
|
-
main_menu.login('dev2')
|
99
|
-
@loan.open
|
100
|
-
@loan.return_button.present?.should be_true
|
101
|
-
@loan.circulation_desk_selector.present?.should be_true
|
102
|
-
@loan.patron_field.present?.should be_true
|
103
|
-
end
|
104
|
-
end
|
data/spec/olels/lookup_spec.rb
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
# Copyright 2005-2013 The Kuali Foundation
|
2
|
-
#
|
3
|
-
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at:
|
6
|
-
#
|
7
|
-
# http://www.opensource.org/licenses/ecl2.php
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'rspec'
|
16
|
-
require 'spec_helper'
|
17
|
-
|
18
|
-
describe 'An OLELS Lookup page' do
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@lookup = OLE_QA::Framework::OLELS::Lookup.new(@ole, @ole.ls_url)
|
23
|
-
end
|
24
|
-
|
25
|
-
after :all do
|
26
|
-
@ole.quit
|
27
|
-
end
|
28
|
-
|
29
|
-
it 'should create a new instance' do
|
30
|
-
@lookup.class.should == OLE_QA::Framework::OLELS::Lookup
|
31
|
-
@lookup.class.superclass.should == OLE_QA::Framework::Page
|
32
|
-
end
|
33
|
-
|
34
|
-
it 'should have lookup page elements' do
|
35
|
-
elements = @lookup.methods
|
36
|
-
elements.include?(:title).should be_true
|
37
|
-
end
|
38
|
-
end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
# Copyright 2005-2013 The Kuali Foundation
|
2
|
-
#
|
3
|
-
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at:
|
6
|
-
#
|
7
|
-
# http://www.opensource.org/licenses/ecl2.php
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'rspec'
|
16
|
-
require 'spec_helper'
|
17
|
-
|
18
|
-
describe 'An OLELS Ownership Extent Line object' do
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@browser = @ole.browser
|
23
|
-
@ownership_line = OLE_QA::Framework::OLELS::Ownership_Extent_Line.new(@ole, 1)
|
24
|
-
end
|
25
|
-
|
26
|
-
after :all do
|
27
|
-
@ole.quit
|
28
|
-
end
|
29
|
-
|
30
|
-
it 'should create a new instance' do
|
31
|
-
@ownership_line.class.should == OLE_QA::Framework::OLELS::Ownership_Extent_Line
|
32
|
-
@ownership_line.class.superclass.should == OLE_QA::Framework::Line_Object
|
33
|
-
end
|
34
|
-
|
35
|
-
it 'should have ownership extent line elements' do
|
36
|
-
elements = @ownership_line.methods
|
37
|
-
elements.include?(:type_selector).should be_true
|
38
|
-
elements.include?(:statement_field).should be_true
|
39
|
-
elements.include?(:add_button).should be_true
|
40
|
-
elements.include?(:remove_button).should be_true
|
41
|
-
end
|
42
|
-
|
43
|
-
it 'should have an ownership note subline object' do
|
44
|
-
sublines = @ownership_line.sublines
|
45
|
-
sublines.include?(:ownership_note).should be_true
|
46
|
-
@ownership_line.ownership_note.should be_an_instance_of(OLE_QA::Framework::OLELS::Ownership_Note)
|
47
|
-
end
|
48
|
-
end
|