ole-qa-framework 3.1.1 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,45 +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 OLEFS Building Lookup page' do
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@building_lookup = OLE_QA::Framework::OLEFS::Building_Lookup.new(@ole)
|
23
|
-
end
|
24
|
-
|
25
|
-
after :all do
|
26
|
-
@ole.quit
|
27
|
-
end
|
28
|
-
|
29
|
-
it 'should create a new instance' do
|
30
|
-
@building_lookup.class.should == OLE_QA::Framework::OLEFS::Building_Lookup
|
31
|
-
@building_lookup.class.superclass.should == OLE_QA::Framework::OLEFS::Lookup
|
32
|
-
end
|
33
|
-
|
34
|
-
it 'should open via URL' do
|
35
|
-
@building_lookup.open
|
36
|
-
@building_lookup.title.text.strip.should == "Building Lookup"
|
37
|
-
end
|
38
|
-
|
39
|
-
it 'should have building lookup elements' do
|
40
|
-
methods = @building_lookup.methods
|
41
|
-
methods.include?(:campus_code_field).should be_true
|
42
|
-
methods.include?(:building_code_field).should be_true
|
43
|
-
methods.include?(:building_name_field).should be_true
|
44
|
-
end
|
45
|
-
end
|
@@ -1,56 +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 'A copies line' do
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@copies_line = OLE_QA::Framework::OLEFS::Copies_Line.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
|
-
@copies_line.class.should == OLE_QA::Framework::OLEFS::Copies_Line
|
31
|
-
end
|
32
|
-
|
33
|
-
it 'should be a subclass of subline object' do
|
34
|
-
@copies_line.class.superclass.should == OLE_QA::Framework::Subline_Object
|
35
|
-
end
|
36
|
-
|
37
|
-
it 'should have a browser accessor' do
|
38
|
-
@copies_line.browser.class.should == @ole.browser.class
|
39
|
-
end
|
40
|
-
|
41
|
-
it 'should have line number methods' do
|
42
|
-
@copies_line.line_number.should == 1
|
43
|
-
end
|
44
|
-
|
45
|
-
it 'should have copies line elements' do
|
46
|
-
elements = @copies_line.elements
|
47
|
-
elements.include?(:location_copies_selector).should be_true
|
48
|
-
elements.include?(:copies).should be_true
|
49
|
-
elements.include?(:parts).should be_true
|
50
|
-
elements.include?(:starting_copy_field).should be_true
|
51
|
-
elements.include?(:caption_field).should be_true
|
52
|
-
elements.include?(:volume_number_field).should be_true
|
53
|
-
elements.include?(:delete_button).should be_true
|
54
|
-
elements.include?(:receive_button).should be_true
|
55
|
-
end
|
56
|
-
end
|
data/spec/olefs/edocs_spec.rb
DELETED
@@ -1,75 +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
|
-
|
16
|
-
require 'rspec'
|
17
|
-
require 'spec_helper'
|
18
|
-
|
19
|
-
|
20
|
-
describe 'An OLEFS E-Document' do
|
21
|
-
|
22
|
-
before :all do
|
23
|
-
@ole = OLE_QA::Framework::Session.new
|
24
|
-
@edoc = OLE_QA::Framework::OLEFS::E_Doc.new(@ole,@ole.base_url)
|
25
|
-
end
|
26
|
-
|
27
|
-
after :all do
|
28
|
-
@ole.quit
|
29
|
-
end
|
30
|
-
|
31
|
-
it 'should create a new instance' do
|
32
|
-
@edoc.class.should == OLE_QA::Framework::OLEFS::E_Doc
|
33
|
-
end
|
34
|
-
|
35
|
-
it 'should be a page' do
|
36
|
-
@edoc.class.superclass.should == OLE_QA::Framework::Page
|
37
|
-
end
|
38
|
-
|
39
|
-
it 'should have E-document elements' do
|
40
|
-
elements = @edoc.methods
|
41
|
-
# General Info
|
42
|
-
elements.include?(:title).should be_true
|
43
|
-
# Header Area
|
44
|
-
elements.include?(:document_id).should be_true
|
45
|
-
elements.include?(:document_status).should be_true
|
46
|
-
elements.include?(:document_type_id).should be_true
|
47
|
-
elements.include?(:document_type_status).should be_true
|
48
|
-
elements.include?(:document_create_date).should be_true
|
49
|
-
# Document Overview
|
50
|
-
elements.include?(:document_overview_tab_toggle).should be_true
|
51
|
-
elements.include?(:description_field).should be_true
|
52
|
-
elements.include?(:explanation_field).should be_true
|
53
|
-
# Global Input Buttons
|
54
|
-
elements.include?(:approve_button).should be_true
|
55
|
-
elements.include?(:save_button).should be_true
|
56
|
-
elements.include?(:submit_button).should be_true
|
57
|
-
elements.include?(:calculate_button).should be_true
|
58
|
-
elements.include?(:close_button).should be_true
|
59
|
-
elements.include?(:cancel_button).should be_true
|
60
|
-
elements.include?(:copy_button).should be_true
|
61
|
-
# Confirmation Screen Buttons
|
62
|
-
elements.include?(:close_yes_button).should be_true
|
63
|
-
elements.include?(:close_no_button).should be_true
|
64
|
-
elements.include?(:cancel_yes_button).should be_true
|
65
|
-
elements.include?(:cancel_no_button).should be_true
|
66
|
-
# Messages
|
67
|
-
elements.include?(:save_message).should be_true
|
68
|
-
elements.include?(:submit_message).should be_true
|
69
|
-
elements.include?(:error_message).should be_true
|
70
|
-
elements.include?(:generic_message).should be_true
|
71
|
-
# Multiple Error Message Components Watir::HTMLElementCollection
|
72
|
-
elements.include?(:errors_in_tab).should be_true
|
73
|
-
elements.include?(:get_error_array).should be_true
|
74
|
-
end
|
75
|
-
end
|
@@ -1,46 +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 OLEFS Exception Notes Line object' do
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@browser = @ole.browser
|
23
|
-
@rcv_line = OLE_QA::Framework::OLEFS::Receiving_Line.new(@ole, 1)
|
24
|
-
@exception_notes_line = OLE_QA::Framework::OLEFS::Exception_Notes_Line.new(@ole, @rcv_line, 1)
|
25
|
-
end
|
26
|
-
|
27
|
-
after :all do
|
28
|
-
@ole.quit
|
29
|
-
end
|
30
|
-
|
31
|
-
it 'should create a new instance' do
|
32
|
-
@exception_notes_line.class.should == OLE_QA::Framework::OLEFS::Exception_Notes_Line
|
33
|
-
@exception_notes_line.class.superclass.should == OLE_QA::Framework::Subline_Object
|
34
|
-
end
|
35
|
-
|
36
|
-
it 'should have a browser accessor' do
|
37
|
-
@exception_notes_line.browser.class.should == @ole.browser.class
|
38
|
-
end
|
39
|
-
|
40
|
-
it 'should have exception notes elements' do
|
41
|
-
elements = @exception_notes_line.elements
|
42
|
-
elements.include?(:exception_type_selector).should be_true
|
43
|
-
elements.include?(:note_field).should be_true
|
44
|
-
elements.include?(:note_type_selector).should be_true
|
45
|
-
end
|
46
|
-
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 OLEFS Invoice Current Item line' do
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@line_object = OLE_QA::Framework::OLEFS::Invoice_Current_Item.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
|
-
@line_object.class.should == OLE_QA::Framework::OLEFS::Invoice_Current_Item
|
31
|
-
@line_object.class.superclass.should == OLE_QA::Framework::Line_Object
|
32
|
-
end
|
33
|
-
|
34
|
-
it 'should have current item elements' do
|
35
|
-
elements = @line_object.elements
|
36
|
-
elements.include?(:po_number).should be_true
|
37
|
-
elements.include?(:open_quantity).should be_true
|
38
|
-
elements.include?(:title).should be_true
|
39
|
-
elements.include?(:po_price).should be_true
|
40
|
-
elements.include?(:copies_invoiced_field).should be_true
|
41
|
-
elements.include?(:invoiced_price_field).should be_true
|
42
|
-
elements.include?(:discount_field).should be_true
|
43
|
-
elements.include?(:discount_type_selector).should be_true
|
44
|
-
elements.include?(:unit_cost).should be_true
|
45
|
-
elements.include?(:extended_cost).should be_true
|
46
|
-
elements.include?(:total_cost).should be_true
|
47
|
-
end
|
48
|
-
end
|
@@ -1,80 +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 'A PO Line Item on an OLE Invoice' do
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@parent_line = OLE_QA::Framework::OLEFS::Invoice_Line.new(@ole, 1)
|
23
|
-
@line_item = OLE_QA::Framework::OLEFS::Invoice_Line_Item.new(@ole, @parent_line, 1)
|
24
|
-
end
|
25
|
-
|
26
|
-
after :all do
|
27
|
-
@ole.quit
|
28
|
-
end
|
29
|
-
|
30
|
-
it 'should create a new instance' do
|
31
|
-
@line_item.class.should == OLE_QA::Framework::OLEFS::Invoice_Line_Item
|
32
|
-
@line_item.class.superclass.should == OLE_QA::Framework::Subline_Object
|
33
|
-
end
|
34
|
-
|
35
|
-
it 'should have access to the line_number and line_id methods on the PO Line' do
|
36
|
-
@line_item.parent_line.line_number.should == 1
|
37
|
-
@line_item.parent_line.line_id.should == 0
|
38
|
-
end
|
39
|
-
|
40
|
-
it 'should have line item elements' do
|
41
|
-
elements = @line_item.elements
|
42
|
-
elements.include?(:number).should be_true
|
43
|
-
elements.include?(:open_quantity).should be_true
|
44
|
-
elements.include?(:title).should be_true
|
45
|
-
elements.include?(:copies_ordered).should be_true
|
46
|
-
elements.include?(:parts_ordered).should be_true
|
47
|
-
elements.include?(:copies_invoiced_field).should be_true
|
48
|
-
elements.include?(:parts_invoiced_field).should be_true
|
49
|
-
elements.include?(:invoiced_price_field).should be_true
|
50
|
-
elements.include?(:discount_field).should be_true
|
51
|
-
elements.include?(:discount_type_selector).should be_true
|
52
|
-
elements.include?(:unit_cost).should be_true
|
53
|
-
elements.include?(:extended_cost).should be_true
|
54
|
-
elements.include?(:invoice_checkbox).should be_true
|
55
|
-
elements.include?(:add_account_button).should be_true
|
56
|
-
elements.include?(:new_chart_selector).should be_true
|
57
|
-
elements.include?(:new_account_number_field).should be_true
|
58
|
-
elements.include?(:new_subaccount_number_field).should be_true
|
59
|
-
elements.include?(:new_object_code_field).should be_true
|
60
|
-
elements.include?(:new_subobject_code_field).should be_true
|
61
|
-
elements.include?(:new_project_field).should be_true
|
62
|
-
elements.include?(:new_org_ref_id_field).should be_true
|
63
|
-
elements.include?(:new_dollar_field).should be_true
|
64
|
-
elements.include?(:new_percentage_field).should be_true
|
65
|
-
end
|
66
|
-
|
67
|
-
it 'should have line item functions' do
|
68
|
-
functions = @line_item.functions
|
69
|
-
functions.include?(:chart_selector).should be_true
|
70
|
-
functions.include?(:account_number_field).should be_true
|
71
|
-
functions.include?(:subaccount_number_field).should be_true
|
72
|
-
functions.include?(:object_code_field).should be_true
|
73
|
-
functions.include?(:subobject_code_field).should be_true
|
74
|
-
functions.include?(:project_field).should be_true
|
75
|
-
functions.include?(:org_ref_id_field).should be_true
|
76
|
-
functions.include?(:dollar_field).should be_true
|
77
|
-
functions.include?(:percentage_field).should be_true
|
78
|
-
functions.include?(:delete_account_button).should be_true
|
79
|
-
end
|
80
|
-
end
|
@@ -1,64 +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 OLE Invoice PO Line' do
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@invoice_line = OLE_QA::Framework::OLEFS::Invoice_Line.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
|
-
@invoice_line.class.should == OLE_QA::Framework::OLEFS::Invoice_Line
|
31
|
-
@invoice_line.class.superclass.should == OLE_QA::Framework::Line_Object
|
32
|
-
end
|
33
|
-
|
34
|
-
it 'should have invoice line elements' do
|
35
|
-
elements = @invoice_line.elements
|
36
|
-
elements.include?(:po_number).should be_true
|
37
|
-
elements.include?(:po_end_date).should be_true
|
38
|
-
elements.include?(:close_po_checkbox).should be_true
|
39
|
-
elements.include?(:delete_po_button).should be_true
|
40
|
-
elements.include?(:requisitions_toggle).should be_true
|
41
|
-
elements.include?(:purchase_orders_toggle).should be_true
|
42
|
-
elements.include?(:line_item_receiving_toggle).should be_true
|
43
|
-
elements.include?(:correction_receiving_toggle).should be_true
|
44
|
-
elements.include?(:payment_requests_toggle).should be_true
|
45
|
-
elements.include?(:credit_memos_toggle).should be_true
|
46
|
-
elements.include?(:add_button).should be_true
|
47
|
-
end
|
48
|
-
|
49
|
-
it 'should have invoice line functions' do
|
50
|
-
functions = @invoice_line.functions
|
51
|
-
# Unable to be implemented at this time (2013/10/04 - JKW).
|
52
|
-
# functions.include?(:requisition_link).should be_true
|
53
|
-
# functions.include?(:purchase_order_link).should be_true
|
54
|
-
# functions.include?(:line_item_receiving_link).should be_true
|
55
|
-
# functions.include?(:correction_receiving_link).should be_true
|
56
|
-
# functions.include?(:payment_request_link).should be_true
|
57
|
-
# functions.include?(:credit_memo_link).should be_true
|
58
|
-
end
|
59
|
-
|
60
|
-
it 'should have an instance of the invoice line item class' do
|
61
|
-
@invoice_line.sublines.include?(:line_item).should be_true
|
62
|
-
@invoice_line.line_item.class.should == OLE_QA::Framework::OLEFS::Invoice_Line_Item
|
63
|
-
end
|
64
|
-
end
|
data/spec/olefs/invoice_spec.rb
DELETED
@@ -1,91 +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 OLE Invoice' do
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@invoice = OLE_QA::Framework::OLEFS::Invoice.new(@ole)
|
23
|
-
end
|
24
|
-
|
25
|
-
after :all do
|
26
|
-
@ole.quit
|
27
|
-
end
|
28
|
-
|
29
|
-
it 'should create a new instance' do
|
30
|
-
@invoice.class.should == OLE_QA::Framework::OLEFS::Invoice
|
31
|
-
@invoice.class.superclass.should == OLE_QA::Framework::OLELS::E_Doc
|
32
|
-
end
|
33
|
-
|
34
|
-
it 'should have invoice elements' do
|
35
|
-
elements = @invoice.elements
|
36
|
-
elements.include?(:document_type_id).should be_true
|
37
|
-
elements.include?(:document_type_status).should be_true
|
38
|
-
elements.include?(:fiscal_year).should be_true
|
39
|
-
elements.include?(:total_amount).should be_true
|
40
|
-
elements.include?(:vendor_selector).should be_true
|
41
|
-
elements.include?(:vendor_invoice_num_field).should be_true
|
42
|
-
elements.include?(:payment_class_field).should be_true
|
43
|
-
elements.include?(:vendor_invoice_amt_field).should be_true
|
44
|
-
elements.include?(:invoice_type_selector).should be_true
|
45
|
-
elements.include?(:bank_code_field).should be_true
|
46
|
-
elements.include?(:pay_date_field).should be_true
|
47
|
-
elements.include?(:immediate_pay_checkbox).should be_true
|
48
|
-
elements.include?(:invoice_date_field).should be_true
|
49
|
-
elements.include?(:pay_attachment_checkbox).should be_true
|
50
|
-
elements.include?(:invoice_subtype_selector).should be_true
|
51
|
-
elements.include?(:payment_method_selector).should be_true
|
52
|
-
elements.include?(:po_number_field).should be_true
|
53
|
-
elements.include?(:po_add_button).should be_true
|
54
|
-
elements.include?(:freight_cost_field).should be_true
|
55
|
-
elements.include?(:freight_description_field).should be_true
|
56
|
-
elements.include?(:shipping_cost_field).should be_true
|
57
|
-
elements.include?(:shipping_description_field).should be_true
|
58
|
-
elements.include?(:min_order_cost_field).should be_true
|
59
|
-
elements.include?(:min_order_description_field).should be_true
|
60
|
-
elements.include?(:misc_cost_field).should be_true
|
61
|
-
elements.include?(:misc_description_field).should be_true
|
62
|
-
elements.include?(:prorate_price_checkbox).should be_true
|
63
|
-
elements.include?(:prorate_qty_checkbox).should be_true
|
64
|
-
elements.include?(:prorate_manual_checkbox).should be_true
|
65
|
-
elements.include?(:no_prorate_checkbox).should be_true
|
66
|
-
elements.include?(:prior_total_field).should be_true
|
67
|
-
elements.include?(:grand_total).should be_true
|
68
|
-
elements.include?(:submit_button).should be_true
|
69
|
-
elements.include?(:save_button).should be_true
|
70
|
-
elements.include?(:approve_button).should be_true
|
71
|
-
elements.include?(:close_button).should be_true
|
72
|
-
elements.include?(:cancel_button).should be_true
|
73
|
-
elements.include?(:calculate_button).should be_true
|
74
|
-
elements.include?(:messages).should be_true
|
75
|
-
end
|
76
|
-
|
77
|
-
it 'should have invoice functions' do
|
78
|
-
functions = @invoice.functions
|
79
|
-
functions.include?(:message).should be_true
|
80
|
-
end
|
81
|
-
|
82
|
-
it 'should have a purchase order line' do
|
83
|
-
@invoice.lines.include?(:po_line).should be_true
|
84
|
-
@invoice.po_line.class.should == OLE_QA::Framework::OLEFS::Invoice_Line
|
85
|
-
end
|
86
|
-
|
87
|
-
it 'should have a current items line' do
|
88
|
-
@invoice.lines.include?(:current_items_line).should be_true
|
89
|
-
@invoice.current_items_line.class.should == OLE_QA::Framework::OLEFS::Invoice_Current_Item
|
90
|
-
end
|
91
|
-
end
|