ole-qa-framework 2.7.3 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +15 -0
- data/lib/common/common_object.rb +1 -1
- data/lib/common/line_object.rb +35 -10
- data/lib/common/page.rb +5 -0
- data/lib/common/subline_object.rb +8 -24
- data/lib/module/qa_helpers.rb +1 -1
- data/lib/module/qa_page_helpers.rb +24 -0
- data/lib/ole_qa_framework/VERSION.rb +1 -1
- data/lib/olefs/common/purap_document.rb +20 -25
- data/lib/olefs/objects/invoice_current_item.rb +1 -1
- data/lib/olefs/objects/invoice_line.rb +5 -2
- data/lib/olefs/objects/line_item.rb +44 -50
- data/lib/olefs/objects/receiving_line.rb +22 -52
- data/lib/olefs/pages/invoice.rb +5 -2
- data/lib/olefs/pages/payment_request.rb +0 -39
- data/lib/olefs/pages/purchase_order.rb +1 -11
- data/lib/olefs/pages/receiving_document.rb +1 -11
- data/lib/olefs/pages/requisition.rb +1 -11
- data/lib/olefs/subobjects/accounting_line.rb +16 -16
- data/lib/olefs/subobjects/copies_line.rb +9 -7
- data/lib/olefs/subobjects/exception_notes_line.rb +3 -3
- data/lib/olefs/{objects → subobjects}/invoice_line_item.rb +34 -45
- data/lib/olefs/subobjects/notes_line.rb +5 -5
- data/lib/olefs/subobjects/processing_line.rb +2 -2
- data/lib/olefs/subobjects/receipt_notes_line.rb +2 -2
- data/lib/olels/common/e_doc.rb +0 -17
- data/lib/olels/common/editor.rb +0 -17
- data/lib/olels/objects/access_info_line.rb +4 -4
- data/lib/olels/objects/control_006_line.rb +6 -6
- data/lib/olels/objects/control_007_line.rb +6 -6
- data/lib/olels/objects/data_line.rb +7 -7
- data/lib/olels/objects/editor_note.rb +3 -3
- data/lib/olels/objects/holdings_note.rb +5 -5
- data/lib/olels/objects/item_note.rb +5 -5
- data/lib/olels/objects/ownership_extent_line.rb +6 -16
- data/lib/olels/objects/patron_address_line.rb +33 -33
- data/lib/olels/objects/patron_email_line.rb +10 -10
- data/lib/olels/objects/patron_phone_line.rb +14 -14
- data/lib/olels/pages/bib_editor.rb +3 -44
- data/lib/olels/pages/instance_editor.rb +3 -33
- data/lib/olels/pages/item_editor.rb +1 -13
- data/lib/olels/pages/patron.rb +4 -33
- data/lib/olels/pages/return.rb +1 -0
- data/lib/olels/pages/staff_upload.rb +1 -0
- data/lib/olels/subobjects/ownership_note.rb +4 -4
- data/spec/common/line_object_spec.rb +41 -8
- data/spec/common/subline_object_spec.rb +9 -19
- data/spec/modules/qa_page_helpers_spec.rb +54 -0
- data/spec/olefs/accounting_line_spec.rb +9 -30
- data/spec/olefs/copies_line_spec.rb +1 -16
- data/spec/olefs/exception_notes_line_spec.rb +3 -13
- data/spec/olefs/invoice_current_item_spec.rb +1 -1
- data/spec/olefs/invoice_line_item_spec.rb +5 -5
- data/spec/olefs/invoice_line_spec.rb +2 -2
- data/spec/olefs/invoice_spec.rb +2 -2
- data/spec/olefs/line_item_spec.rb +32 -67
- data/spec/olefs/notes_line_spec.rb +5 -17
- data/spec/olefs/payment_request_spec.rb +1 -43
- data/spec/olefs/processing_line_spec.rb +5 -4
- data/spec/olefs/purap_document_spec.rb +23 -1
- data/spec/olefs/purchase_order_spec.rb +4 -18
- data/spec/olefs/receipt_notes_line_spec.rb +5 -14
- data/spec/olefs/receive_spec.rb +3 -18
- data/spec/olefs/receiving_line_spec.rb +35 -74
- data/spec/olefs/requisition_spec.rb +5 -19
- data/spec/olels/access_info_line_spec.rb +1 -1
- data/spec/olels/bib_editor_spec.rb +8 -56
- data/spec/olels/data_line_spec.rb +2 -2
- data/spec/olels/editor_spec.rb +0 -4
- data/spec/olels/{holdings_note_spec_spec.rb → holdings_note_spec.rb} +1 -1
- data/spec/olels/instance_editor_spec.rb +8 -31
- data/spec/olels/item_editor_spec.rb +4 -14
- data/spec/olels/item_note_spec.rb +2 -2
- data/spec/olels/ownership_extent_line_spec.rb +6 -16
- data/spec/olels/ownership_note_spec.rb +2 -1
- data/spec/olels/patron_address_line_spec.rb +1 -1
- data/spec/olels/patron_email_line_spec.rb +1 -1
- data/spec/olels/patron_phone_line_spec.rb +2 -2
- data/spec/olels/patron_spec.rb +8 -40
- metadata +7 -30
- data/lib/olefs/common/invoice_line_object.rb +0 -37
- data/lib/olefs/common/line_object.rb +0 -39
- data/lib/olefs/objects/new_line_item.rb +0 -48
- data/lib/olefs/objects/new_preq_line_item.rb +0 -43
- data/lib/olefs/objects/new_receiving_line.rb +0 -42
- data/lib/olefs/objects/preq_line_item.rb +0 -68
- data/lib/olefs/pages/payment_request_creation.rb +0 -44
- data/lib/olefs/subobjects/invoice_notes_line.rb +0 -25
- data/lib/olefs/subobjects/new_accounting_line.rb +0 -43
- data/lib/olefs/subobjects/new_copies_line.rb +0 -37
- data/lib/olefs/subobjects/new_exception_notes_line.rb +0 -30
- data/lib/olefs/subobjects/new_invoice_notes_line.rb +0 -35
- data/lib/olefs/subobjects/new_notes_line.rb +0 -36
- data/lib/olefs/subobjects/new_receipt_notes_line.rb +0 -35
- data/lib/olels/common/line_object.rb +0 -39
- data/spec/olefs/invoice_line_object_spec.rb +0 -49
- data/spec/olefs/invoice_notes_line_spec.rb +0 -49
- data/spec/olefs/preq_creation_spec.rb +0 -47
- data/spec/olefs/preq_line_item_spec.rb +0 -111
- data/spec/workflows/purap_spec.rb +0 -221
@@ -17,7 +17,7 @@ require 'rspec'
|
|
17
17
|
require 'spec_helper'
|
18
18
|
|
19
19
|
|
20
|
-
describe 'A
|
20
|
+
describe 'A PURAP requisition document' do
|
21
21
|
|
22
22
|
before :all do
|
23
23
|
@ole = OLE_QA::Framework::Session.new
|
@@ -42,7 +42,7 @@ describe 'A purap_requisition document' do
|
|
42
42
|
end
|
43
43
|
|
44
44
|
it 'should have requisition elements' do
|
45
|
-
elements = @req.
|
45
|
+
elements = @req.elements
|
46
46
|
elements.include?(:license_request_checkbox).should be_true
|
47
47
|
elements.include?(:receiving_required_checkbox).should be_true
|
48
48
|
elements.include?(:payment_request_approval_required_checkbox).should be_true
|
@@ -64,22 +64,8 @@ describe 'A purap_requisition document' do
|
|
64
64
|
elements.include?(:grand_total_field).should be_true
|
65
65
|
end
|
66
66
|
|
67
|
-
it 'should have a
|
68
|
-
@req.
|
69
|
-
|
70
|
-
|
71
|
-
it 'should create a line item' do
|
72
|
-
@req.create_line_item(1)
|
73
|
-
@req.methods.include?(:line_item_1).should be_true
|
74
|
-
@req.line_item_1.class.should == OLE_QA::Framework::OLEFS::Line_Item
|
75
|
-
end
|
76
|
-
|
77
|
-
it 'should delete a line item' do
|
78
|
-
@req.remove_line_item(1)
|
79
|
-
@req.methods.include?(:line_item_1).should be_false
|
80
|
-
end
|
81
|
-
|
82
|
-
it 'should not delete a line item which does not exist' do
|
83
|
-
lambda {@req.remove_line_item(1)}.should raise_error
|
67
|
+
it 'should have a line item' do
|
68
|
+
@req.lines.include?(:line_item).should be_true
|
69
|
+
@req.line_item.should be_an_instance_of(OLE_QA::Framework::OLEFS::Line_Item)
|
84
70
|
end
|
85
71
|
end
|
@@ -28,7 +28,7 @@ describe 'An OLELS Access Info Line object' do
|
|
28
28
|
|
29
29
|
it 'should create a new instance' do
|
30
30
|
@access_info.class.should == OLE_QA::Framework::OLELS::Access_Info_Line
|
31
|
-
@access_info.class.superclass.should == OLE_QA::Framework::
|
31
|
+
@access_info.class.superclass.should == OLE_QA::Framework::Line_Object
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should have access info elements' do
|
@@ -75,61 +75,13 @@ describe 'The Bib Editor' do
|
|
75
75
|
functions.should include(:readonly_data_field)
|
76
76
|
end
|
77
77
|
|
78
|
-
it 'should
|
79
|
-
@bib_editor.
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
@bib_editor.
|
84
|
-
@bib_editor.
|
85
|
-
@bib_editor.
|
86
|
-
end
|
87
|
-
|
88
|
-
it 'should delete a data line' do
|
89
|
-
@bib_editor.delete_data_line(2)
|
90
|
-
@bib_editor.methods.include?(:data_line_2).should be_false
|
91
|
-
end
|
92
|
-
|
93
|
-
it 'should not add a data line which already exists' do
|
94
|
-
lambda {@bib_editor.add_data_line(1)}.should raise_error
|
95
|
-
end
|
96
|
-
|
97
|
-
it 'should not delete a data line which does not exist' do
|
98
|
-
lambda {@bib_editor.delete_data_line(2)}.should raise_error
|
99
|
-
end
|
100
|
-
|
101
|
-
it 'should start with one 006 line' do
|
102
|
-
@bib_editor.control_006_line_1.should be_a(OLE_QA::Framework::OLELS::Control_006_Line)
|
103
|
-
end
|
104
|
-
|
105
|
-
it 'should start with one 007 line' do
|
106
|
-
@bib_editor.control_007_line_1.should be_a(OLE_QA::Framework::OLELS::Control_007_Line)
|
107
|
-
end
|
108
|
-
|
109
|
-
it 'should add an 006 line' do
|
110
|
-
@bib_editor.add_006_line(2)
|
111
|
-
@bib_editor.methods.include?(:control_006_line_2).should be_true
|
112
|
-
@bib_editor.control_006_line_2.should be_a(OLE_QA::Framework::OLELS::Control_006_Line)
|
113
|
-
end
|
114
|
-
|
115
|
-
it 'should add an 007 line' do
|
116
|
-
@bib_editor.add_007_line(2)
|
117
|
-
@bib_editor.methods.include?(:control_007_line_2).should be_true
|
118
|
-
@bib_editor.control_007_line_2.should be_a(OLE_QA::Framework::OLELS::Control_007_Line)
|
119
|
-
end
|
120
|
-
|
121
|
-
it 'should delete an 006 line' do
|
122
|
-
@bib_editor.remove_006_line(2)
|
123
|
-
@bib_editor.methods.should_not include(:control_006_line_2)
|
124
|
-
end
|
125
|
-
|
126
|
-
it 'should delete an 007 line' do
|
127
|
-
@bib_editor.remove_007_line(2)
|
128
|
-
@bib_editor.methods.should_not include(:control_007_line_2)
|
129
|
-
end
|
130
|
-
|
131
|
-
it 'should not remove control lines which do not exist' do
|
132
|
-
lambda {@bib_editor.remove_006_line(2)}.should raise_error
|
133
|
-
lambda {@bib_editor.remove_007_line(2)}.should raise_error
|
78
|
+
it 'should have bib editor lines' do
|
79
|
+
lines = @bib_editor.lines
|
80
|
+
lines.include?(:control_006_line).should be_true
|
81
|
+
lines.include?(:control_007_line).should be_true
|
82
|
+
lines.include?(:data_line).should be_true
|
83
|
+
@bib_editor.control_006_line.should be_an_instance_of(OLE_QA::Framework::OLELS::Control_006_Line)
|
84
|
+
@bib_editor.control_007_line.should be_an_instance_of(OLE_QA::Framework::OLELS::Control_007_Line)
|
85
|
+
@bib_editor.data_line.should be_an_instance_of(OLE_QA::Framework::OLELS::Data_Line)
|
134
86
|
end
|
135
87
|
end
|
@@ -29,11 +29,11 @@ describe 'A Bib Editor Line' do
|
|
29
29
|
|
30
30
|
it 'should create a new instance' do
|
31
31
|
@data_line.class.should == OLE_QA::Framework::OLELS::Data_Line
|
32
|
-
@data_line.class.superclass.should == OLE_QA::Framework::
|
32
|
+
@data_line.class.superclass.should == OLE_QA::Framework::Line_Object
|
33
33
|
end
|
34
34
|
|
35
35
|
it 'should have Marc data line elements' do
|
36
|
-
elements = @data_line.
|
36
|
+
elements = @data_line.elements
|
37
37
|
elements.include?(:tag_field).should be_true
|
38
38
|
elements.include?(:ind1_field).should be_true
|
39
39
|
elements.include?(:ind2_field).should be_true
|
data/spec/olels/editor_spec.rb
CHANGED
@@ -28,7 +28,7 @@ describe 'An OLELS Holdings Note object' do
|
|
28
28
|
|
29
29
|
it 'should create a new instance' do
|
30
30
|
@holdings_note.class.should == OLE_QA::Framework::OLELS::Holdings_Note
|
31
|
-
@holdings_note.class.superclass.should == OLE_QA::Framework::
|
31
|
+
@holdings_note.class.superclass.should == OLE_QA::Framework::Line_Object
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should have holdings note elements' do
|
@@ -59,38 +59,15 @@ describe 'An OLELS Instance Editor page' do
|
|
59
59
|
end
|
60
60
|
|
61
61
|
it 'should have instance editor functions' do
|
62
|
-
# functions = @instance_editor.functions
|
63
|
-
# Read-Only Elements (iterative fields, input required to specify which)
|
64
|
-
# TODO Model line items as readonly functions only when it becomes necessary for testing.
|
65
62
|
end
|
66
63
|
|
67
|
-
it 'should
|
68
|
-
@instance_editor.
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
@instance_editor.
|
73
|
-
@instance_editor.
|
74
|
-
|
75
|
-
|
76
|
-
it 'should add line objects' do
|
77
|
-
@instance_editor.add_ownership_extent_line(2)
|
78
|
-
@instance_editor.methods.include?(:ownership_extent_line_2).should be_true
|
79
|
-
@instance_editor.ownership_extent_line_2.class.should == OLE_QA::Framework::OLELS::Ownership_Extent_Line
|
80
|
-
@instance_editor.add_access_info_line(2)
|
81
|
-
@instance_editor.methods.include?(:access_info_line_2).should be_true
|
82
|
-
@instance_editor.access_info_line_2.class.should == OLE_QA::Framework::OLELS::Access_Info_Line
|
83
|
-
@instance_editor.add_holdings_note(2)
|
84
|
-
@instance_editor.methods.include?(:holdings_note_2).should be_true
|
85
|
-
@instance_editor.holdings_note_2.class.should == OLE_QA::Framework::OLELS::Holdings_Note
|
86
|
-
end
|
87
|
-
|
88
|
-
it 'should remove line objects' do
|
89
|
-
@instance_editor.remove_ownership_extent_line(2)
|
90
|
-
@instance_editor.methods.include?(:ownership_extent_line_2).should be_false
|
91
|
-
@instance_editor.remove_access_info_line(2)
|
92
|
-
@instance_editor.methods.include?(:access_info_line_2).should be_false
|
93
|
-
@instance_editor.remove_holdings_note(2)
|
94
|
-
@instance_editor.methods.include?(:holdings_note_2).should be_false
|
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)
|
95
72
|
end
|
96
73
|
end
|
@@ -88,19 +88,9 @@ describe 'An OLELS Item Editor page' do
|
|
88
88
|
|
89
89
|
end
|
90
90
|
|
91
|
-
it 'should
|
92
|
-
@item_editor.
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
it 'should add an item note' do
|
97
|
-
@item_editor.add_item_note(2)
|
98
|
-
@item_editor.methods.include?(:item_note_2).should be_true
|
99
|
-
@item_editor.item_note_2.class.should == OLE_QA::Framework::OLELS::Item_Note
|
100
|
-
end
|
101
|
-
|
102
|
-
it 'should remove an item note' do
|
103
|
-
@item_editor.remove_item_note(2)
|
104
|
-
@item_editor.methods.include?(:item_note_2).should be_false
|
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)
|
105
95
|
end
|
106
96
|
end
|
@@ -28,11 +28,11 @@ describe 'My behaviour' do
|
|
28
28
|
|
29
29
|
it 'should create a new instance' do
|
30
30
|
@item_note.class.should == OLE_QA::Framework::OLELS::Item_Note
|
31
|
-
@item_note.class.superclass.should == OLE_QA::Framework::
|
31
|
+
@item_note.class.superclass.should == OLE_QA::Framework::Line_Object
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should have item note elements' do
|
35
|
-
elements = @item_note.
|
35
|
+
elements = @item_note.elements
|
36
36
|
elements.include?(:note_type_selector).should be_true
|
37
37
|
elements.include?(:note_field).should be_true
|
38
38
|
elements.include?(:add_button).should be_true
|
@@ -20,7 +20,7 @@ describe 'An OLELS Ownership Extent Line object' do
|
|
20
20
|
before :all do
|
21
21
|
@ole = OLE_QA::Framework::Session.new
|
22
22
|
@browser = @ole.browser
|
23
|
-
@ownership_line = OLE_QA::Framework::OLELS::Ownership_Extent_Line.new(@
|
23
|
+
@ownership_line = OLE_QA::Framework::OLELS::Ownership_Extent_Line.new(@ole, 1)
|
24
24
|
end
|
25
25
|
|
26
26
|
after :all do
|
@@ -29,7 +29,7 @@ describe 'An OLELS Ownership Extent Line object' do
|
|
29
29
|
|
30
30
|
it 'should create a new instance' do
|
31
31
|
@ownership_line.class.should == OLE_QA::Framework::OLELS::Ownership_Extent_Line
|
32
|
-
@ownership_line.class.superclass.should == OLE_QA::Framework::
|
32
|
+
@ownership_line.class.superclass.should == OLE_QA::Framework::Line_Object
|
33
33
|
end
|
34
34
|
|
35
35
|
it 'should have ownership extent line elements' do
|
@@ -40,19 +40,9 @@ describe 'An OLELS Ownership Extent Line object' do
|
|
40
40
|
elements.include?(:remove_button).should be_true
|
41
41
|
end
|
42
42
|
|
43
|
-
it 'should
|
44
|
-
@ownership_line.
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
it 'should add an ownership note' do
|
49
|
-
@ownership_line.add_ownership_note(2)
|
50
|
-
@ownership_line.methods.include?(:ownership_note_2).should be_true
|
51
|
-
@ownership_line.ownership_note_2.class.should == OLE_QA::Framework::OLELS::Ownership_Note
|
52
|
-
end
|
53
|
-
|
54
|
-
it 'should delete an ownership note' do
|
55
|
-
@ownership_line.delete_ownership_note(2)
|
56
|
-
@ownership_line.methods.include?(:ownership_note_2).should be_false
|
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)
|
57
47
|
end
|
58
48
|
end
|
@@ -19,7 +19,8 @@ describe 'An OLELS Ownership Note object' do
|
|
19
19
|
|
20
20
|
before :all do
|
21
21
|
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@
|
22
|
+
@line = OLE_QA::Framework::OLELS::Ownership_Extent_Line.new(@ole)
|
23
|
+
@ownership_note = OLE_QA::Framework::OLELS::Ownership_Note.new(@ole, @line, 1)
|
23
24
|
end
|
24
25
|
|
25
26
|
after :all do
|
@@ -29,7 +29,7 @@ describe 'A patron address line' do
|
|
29
29
|
|
30
30
|
it 'should create a new instance' do
|
31
31
|
@line_1.should be_an_instance_of(OLE_QA::Framework::OLELS::Patron_Address_Line)
|
32
|
-
@line_1.class.superclass.should == OLE_QA::Framework::
|
32
|
+
@line_1.class.superclass.should == OLE_QA::Framework::Line_Object
|
33
33
|
end
|
34
34
|
|
35
35
|
it 'should have address line elements' do
|
@@ -29,7 +29,7 @@ describe 'A patron email line' do
|
|
29
29
|
it 'should create a new instance' do
|
30
30
|
@line_1.should be_an_instance_of(OLE_QA::Framework::OLELS::Patron_Email_Line)
|
31
31
|
@line_2.should be_an_instance_of(OLE_QA::Framework::OLELS::Patron_Email_Line)
|
32
|
-
@line_1.class.superclass.should == OLE_QA::Framework::
|
32
|
+
@line_1.class.superclass.should == OLE_QA::Framework::Line_Object
|
33
33
|
end
|
34
34
|
|
35
35
|
it 'should have email line elements' do
|
@@ -15,7 +15,7 @@
|
|
15
15
|
require 'rspec'
|
16
16
|
require 'spec_helper'
|
17
17
|
|
18
|
-
describe '
|
18
|
+
describe 'An OLELS Patron Phone line object' do
|
19
19
|
|
20
20
|
before :all do
|
21
21
|
@ole = OLE_QA::Framework::Session.new
|
@@ -30,7 +30,7 @@ describe 'My behaviour' do
|
|
30
30
|
it 'should create a new instance' do
|
31
31
|
@line_1.should be_an_instance_of(OLE_QA::Framework::OLELS::Patron_Phone_Line)
|
32
32
|
@line_2.should be_an_instance_of(OLE_QA::Framework::OLELS::Patron_Phone_Line)
|
33
|
-
@line_1.class.superclass.should == OLE_QA::Framework::
|
33
|
+
@line_1.class.superclass.should == OLE_QA::Framework::Line_Object
|
34
34
|
end
|
35
35
|
|
36
36
|
it 'should have patron phone line elements' do
|
data/spec/olels/patron_spec.rb
CHANGED
@@ -74,46 +74,14 @@ describe 'A patron record page' do
|
|
74
74
|
functions.should include(:redefine_patron_image_elements)
|
75
75
|
end
|
76
76
|
|
77
|
-
it 'should have contact info lines' do
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
all_methods.should include(:remove_address_line)
|
86
|
-
all_methods.should include(:remove_phone_line)
|
87
|
-
all_methods.should include(:remove_email_line)
|
88
|
-
end
|
89
|
-
|
90
|
-
it 'should add contact info lines' do
|
91
|
-
@page.add_address_line(2)
|
92
|
-
@page.add_phone_line(2)
|
93
|
-
@page.add_email_line(2)
|
94
|
-
methods = @page.methods
|
95
|
-
methods.should include(:address_line_2)
|
96
|
-
methods.should include(:phone_line_2)
|
97
|
-
methods.should include(:email_line_2)
|
98
|
-
@page.address_line_2.should be_an_instance_of(OLE_QA::Framework::OLELS::Patron_Address_Line)
|
99
|
-
@page.phone_line_2.should be_an_instance_of(OLE_QA::Framework::OLELS::Patron_Phone_Line)
|
100
|
-
@page.email_line_2.should be_an_instance_of(OLE_QA::Framework::OLELS::Patron_Email_Line)
|
101
|
-
end
|
102
|
-
|
103
|
-
it 'should remove contact info lines' do
|
104
|
-
@page.remove_address_line(2)
|
105
|
-
@page.remove_phone_line(2)
|
106
|
-
@page.remove_email_line(2)
|
107
|
-
methods = @page.methods
|
108
|
-
methods.should_not include(:address_line_2)
|
109
|
-
methods.should_not include(:phone_line_2)
|
110
|
-
methods.should_not include(:email_line_2)
|
111
|
-
end
|
112
|
-
|
113
|
-
it 'should not remove contact info lines which do not exist' do
|
114
|
-
lambda {@page.remove_address_line(2)}.should raise_error
|
115
|
-
lambda {@page.remove_phone_line(2)}.should raise_error
|
116
|
-
lambda {@page.remove_email_line(2)}.should raise_error
|
77
|
+
it 'should have patron contact info lines' do
|
78
|
+
lines = @page.lines
|
79
|
+
lines.include?(:address_line).should be_true
|
80
|
+
lines.include?(:phone_line).should be_true
|
81
|
+
lines.include?(:email_line).should be_true
|
82
|
+
@page.address_line.should be_an_instance_of(OLE_QA::Framework::OLELS::Patron_Address_Line)
|
83
|
+
@page.phone_line.should be_an_instance_of(OLE_QA::Framework::OLELS::Patron_Phone_Line)
|
84
|
+
@page.email_line.should be_an_instance_of(OLE_QA::Framework::OLELS::Patron_Email_Line)
|
117
85
|
end
|
118
86
|
|
119
87
|
it 'should open the page via URL' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ole-qa-framework
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -141,18 +141,11 @@ files:
|
|
141
141
|
- lib/ole_qa_framework/COMPATIBILITY.rb
|
142
142
|
- lib/ole_qa_framework/VERSION.rb
|
143
143
|
- lib/olefs/common/e_doc.rb
|
144
|
-
- lib/olefs/common/invoice_line_object.rb
|
145
|
-
- lib/olefs/common/line_object.rb
|
146
144
|
- lib/olefs/common/lookup.rb
|
147
145
|
- lib/olefs/common/purap_document.rb
|
148
146
|
- lib/olefs/objects/invoice_current_item.rb
|
149
147
|
- lib/olefs/objects/invoice_line.rb
|
150
|
-
- lib/olefs/objects/invoice_line_item.rb
|
151
148
|
- lib/olefs/objects/line_item.rb
|
152
|
-
- lib/olefs/objects/new_line_item.rb
|
153
|
-
- lib/olefs/objects/new_preq_line_item.rb
|
154
|
-
- lib/olefs/objects/new_receiving_line.rb
|
155
|
-
- lib/olefs/objects/preq_line_item.rb
|
156
149
|
- lib/olefs/objects/receiving_line.rb
|
157
150
|
- lib/olefs/pages/building_lookup.rb
|
158
151
|
- lib/olefs/pages/invoice.rb
|
@@ -160,7 +153,6 @@ files:
|
|
160
153
|
- lib/olefs/pages/load_summary_lookup.rb
|
161
154
|
- lib/olefs/pages/main_menu.rb
|
162
155
|
- lib/olefs/pages/payment_request.rb
|
163
|
-
- lib/olefs/pages/payment_request_creation.rb
|
164
156
|
- lib/olefs/pages/purchase_order.rb
|
165
157
|
- lib/olefs/pages/receiving_document.rb
|
166
158
|
- lib/olefs/pages/requisition.rb
|
@@ -168,19 +160,12 @@ files:
|
|
168
160
|
- lib/olefs/subobjects/accounting_line.rb
|
169
161
|
- lib/olefs/subobjects/copies_line.rb
|
170
162
|
- lib/olefs/subobjects/exception_notes_line.rb
|
171
|
-
- lib/olefs/subobjects/
|
172
|
-
- lib/olefs/subobjects/new_accounting_line.rb
|
173
|
-
- lib/olefs/subobjects/new_copies_line.rb
|
174
|
-
- lib/olefs/subobjects/new_exception_notes_line.rb
|
175
|
-
- lib/olefs/subobjects/new_invoice_notes_line.rb
|
176
|
-
- lib/olefs/subobjects/new_notes_line.rb
|
177
|
-
- lib/olefs/subobjects/new_receipt_notes_line.rb
|
163
|
+
- lib/olefs/subobjects/invoice_line_item.rb
|
178
164
|
- lib/olefs/subobjects/notes_line.rb
|
179
165
|
- lib/olefs/subobjects/processing_line.rb
|
180
166
|
- lib/olefs/subobjects/receipt_notes_line.rb
|
181
167
|
- lib/olels/common/e_doc.rb
|
182
168
|
- lib/olels/common/editor.rb
|
183
|
-
- lib/olels/common/line_object.rb
|
184
169
|
- lib/olels/common/lookup.rb
|
185
170
|
- lib/olels/objects/access_info_line.rb
|
186
171
|
- lib/olels/objects/control_006_line.rb
|
@@ -211,6 +196,7 @@ files:
|
|
211
196
|
- spec/common/page_spec.rb
|
212
197
|
- spec/common/subline_object_spec.rb
|
213
198
|
- spec/modules/qa_helpers_spec.rb
|
199
|
+
- spec/modules/qa_page_helpers_spec.rb
|
214
200
|
- spec/olefs/accounting_line_spec.rb
|
215
201
|
- spec/olefs/building_lookup_spec.rb
|
216
202
|
- spec/olefs/copies_line_spec.rb
|
@@ -218,9 +204,7 @@ files:
|
|
218
204
|
- spec/olefs/exception_notes_line_spec.rb
|
219
205
|
- spec/olefs/invoice_current_item_spec.rb
|
220
206
|
- spec/olefs/invoice_line_item_spec.rb
|
221
|
-
- spec/olefs/invoice_line_object_spec.rb
|
222
207
|
- spec/olefs/invoice_line_spec.rb
|
223
|
-
- spec/olefs/invoice_notes_line_spec.rb
|
224
208
|
- spec/olefs/invoice_spec.rb
|
225
209
|
- spec/olefs/line_item_spec.rb
|
226
210
|
- spec/olefs/load_report_spec.rb
|
@@ -229,8 +213,6 @@ files:
|
|
229
213
|
- spec/olefs/main_menu_spec.rb
|
230
214
|
- spec/olefs/notes_line_spec.rb
|
231
215
|
- spec/olefs/payment_request_spec.rb
|
232
|
-
- spec/olefs/preq_creation_spec.rb
|
233
|
-
- spec/olefs/preq_line_item_spec.rb
|
234
216
|
- spec/olefs/processing_line_spec.rb
|
235
217
|
- spec/olefs/purap_document_spec.rb
|
236
218
|
- spec/olefs/purchase_order_spec.rb
|
@@ -247,7 +229,7 @@ files:
|
|
247
229
|
- spec/olels/describe_workbench_spec.rb
|
248
230
|
- spec/olels/editor_spec.rb
|
249
231
|
- spec/olels/edocs_spec.rb
|
250
|
-
- spec/olels/
|
232
|
+
- spec/olels/holdings_note_spec.rb
|
251
233
|
- spec/olels/instance_editor_spec.rb
|
252
234
|
- spec/olels/item_editor_spec.rb
|
253
235
|
- spec/olels/item_note_spec.rb
|
@@ -264,7 +246,6 @@ files:
|
|
264
246
|
- spec/olels/return_spec.rb
|
265
247
|
- spec/olels/staff_upload_spec.rb
|
266
248
|
- spec/spec_helper.rb
|
267
|
-
- spec/workflows/purap_spec.rb
|
268
249
|
homepage: http://www.github.com/jkwaldrip/ole-qa-framework/
|
269
250
|
licenses:
|
270
251
|
- ECLv2
|
@@ -297,6 +278,7 @@ test_files:
|
|
297
278
|
- spec/common/page_spec.rb
|
298
279
|
- spec/common/subline_object_spec.rb
|
299
280
|
- spec/modules/qa_helpers_spec.rb
|
281
|
+
- spec/modules/qa_page_helpers_spec.rb
|
300
282
|
- spec/olefs/accounting_line_spec.rb
|
301
283
|
- spec/olefs/building_lookup_spec.rb
|
302
284
|
- spec/olefs/copies_line_spec.rb
|
@@ -304,9 +286,7 @@ test_files:
|
|
304
286
|
- spec/olefs/exception_notes_line_spec.rb
|
305
287
|
- spec/olefs/invoice_current_item_spec.rb
|
306
288
|
- spec/olefs/invoice_line_item_spec.rb
|
307
|
-
- spec/olefs/invoice_line_object_spec.rb
|
308
289
|
- spec/olefs/invoice_line_spec.rb
|
309
|
-
- spec/olefs/invoice_notes_line_spec.rb
|
310
290
|
- spec/olefs/invoice_spec.rb
|
311
291
|
- spec/olefs/line_item_spec.rb
|
312
292
|
- spec/olefs/load_report_spec.rb
|
@@ -315,8 +295,6 @@ test_files:
|
|
315
295
|
- spec/olefs/main_menu_spec.rb
|
316
296
|
- spec/olefs/notes_line_spec.rb
|
317
297
|
- spec/olefs/payment_request_spec.rb
|
318
|
-
- spec/olefs/preq_creation_spec.rb
|
319
|
-
- spec/olefs/preq_line_item_spec.rb
|
320
298
|
- spec/olefs/processing_line_spec.rb
|
321
299
|
- spec/olefs/purap_document_spec.rb
|
322
300
|
- spec/olefs/purchase_order_spec.rb
|
@@ -333,7 +311,7 @@ test_files:
|
|
333
311
|
- spec/olels/describe_workbench_spec.rb
|
334
312
|
- spec/olels/editor_spec.rb
|
335
313
|
- spec/olels/edocs_spec.rb
|
336
|
-
- spec/olels/
|
314
|
+
- spec/olels/holdings_note_spec.rb
|
337
315
|
- spec/olels/instance_editor_spec.rb
|
338
316
|
- spec/olels/item_editor_spec.rb
|
339
317
|
- spec/olels/item_note_spec.rb
|
@@ -350,5 +328,4 @@ test_files:
|
|
350
328
|
- spec/olels/return_spec.rb
|
351
329
|
- spec/olels/staff_upload_spec.rb
|
352
330
|
- spec/spec_helper.rb
|
353
|
-
- spec/workflows/purap_spec.rb
|
354
331
|
has_rdoc:
|