ole-qa-framework 2.7.0 → 2.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -1
- data/lib/config/default_options.yml +3 -3
- data/lib/ole_qa_framework/VERSION.rb +1 -1
- data/lib/olefs/pages/invoice.rb +4 -0
- data/spec/olefs/invoice_spec.rb +5 -0
- metadata +1 -1
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
# Default options for
|
1
|
+
# Default options for non-development use.
|
2
2
|
---
|
3
|
-
:url: http://
|
3
|
+
:url: http://tst.ole.kuali.org/
|
4
4
|
:headless?: true
|
5
5
|
:implicit_wait: 0
|
6
6
|
:explicit_wait: 15
|
7
|
-
:doc_wait:
|
7
|
+
:doc_wait: 45
|
data/lib/olefs/pages/invoice.rb
CHANGED
@@ -19,12 +19,16 @@ module OLE_QA::Framework::OLEFS
|
|
19
19
|
# A flexible object representing a Purchase Order line on an Invoice document.
|
20
20
|
attr_reader :po_line
|
21
21
|
|
22
|
+
# A flexible object representing a Purchase Order line item in the Current Items tab of an Invoice document.
|
23
|
+
attr_reader :current_items_line
|
24
|
+
|
22
25
|
# Initialize with URL for a new invoice.
|
23
26
|
def initialize(ole_session)
|
24
27
|
url = ole_session.url + '/portal.do?channelTitle=Create&channelUrl='
|
25
28
|
url += ole_session.url + '/ole-kr-krad/OLEInvoice?viewId=OLEInvoiceDocumentView&methodToCall=docHandler&command=initiate&documentClass=org.kuali.ole.krad.transaction.documents.OLEInvoiceDocument'
|
26
29
|
super(ole_session, url)
|
27
30
|
@po_line = OLE_QA::Framework::OLEFS::Invoice_Line.new(@ole, 1)
|
31
|
+
@current_items_line = OLE_QA::Framework::OLEFS::Invoice_Current_Item.new(@ole, 1)
|
28
32
|
end
|
29
33
|
|
30
34
|
# Define basic invoice document screen elements.
|
data/spec/olefs/invoice_spec.rb
CHANGED
@@ -81,4 +81,9 @@ describe 'An OLE Invoice' do
|
|
81
81
|
@invoice.methods.include?(:po_line).should be_true
|
82
82
|
@invoice.po_line.class.should == OLE_QA::Framework::OLEFS::Invoice_Line
|
83
83
|
end
|
84
|
+
|
85
|
+
it 'should have a current items line' do
|
86
|
+
@invoice.methods.include?(:current_items_line).should be_true
|
87
|
+
@invoice.current_items_line.class.should == OLE_QA::Framework::OLEFS::Invoice_Current_Item
|
88
|
+
end
|
84
89
|
end
|