ole-qa-framework 2.6.4 → 2.6.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +8 -0
- data/lib/config/default_options.yml +3 -3
- data/lib/ole_qa_framework/VERSION.rb +1 -1
- data/lib/olels/pages/bib_editor.rb +19 -2
- data/lib/olels/pages/instance_editor.rb +9 -1
- data/lib/olels/pages/item_editor.rb +10 -0
- data/spec/olels/bib_editor_spec.rb +16 -0
- data/spec/olels/instance_editor_spec.rb +15 -0
- data/spec/olels/item_editor_spec.rb +11 -0
- metadata +2 -2
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
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# Copyright 2005-2013 The Kuali Foundation
|
2
|
-
#
|
2
|
+
#
|
3
3
|
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
5
5
|
# You may obtain a copy of the License at:
|
@@ -43,11 +43,28 @@ module OLE_QA::Framework::OLELS
|
|
43
43
|
element(:control_007_set_button) {b.button(:id => "ControlField007_Set_button")}
|
44
44
|
element(:control_007_clear_button) {b.button(:id => "ControlField007_Clear_button ")}
|
45
45
|
element(:control_008_field) {b.text_field(:id => 'Control_Field_008_control')}
|
46
|
+
# Read-Only Fields (for when the Bib Editor is opened in 'View' mode)
|
47
|
+
element(:readonly_edit_button) {b.button(:text => /Edit/)}
|
48
|
+
element(:readonly_created_by) {b.span(:id => 'createdBy_control')}
|
49
|
+
element(:readonly_created_date) {b.span(:id => 'createdDate_control')}
|
50
|
+
element(:readonly_leader_field) {b.span(:id => 'LeaderTextInputField_control')}
|
51
|
+
element(:readonly_control_001_field) {b.span(:id => 'Control_Field_001ReadOnly_control')}
|
52
|
+
element(:readonly_control_003_field) {b.span(:id => 'Control_Field_003ReadOnly_control')}
|
53
|
+
element(:readonly_control_005_field) {b.span(:id => 'Control_Field_005ReadOnly_control')}
|
54
|
+
element(:readonly_control_008_field) {b.span(:id => 'Control_Field_008ReadOnly_control')}
|
46
55
|
end
|
47
56
|
|
48
57
|
def set_functions
|
49
58
|
super
|
50
|
-
|
59
|
+
# Functions for iterative fields on the read-only version of the Marc Bib Editor.
|
60
|
+
# - Invoke with numerical value (1-based) of repeatable line.
|
61
|
+
# e.g. bib_editor.readonly_data_field(1).text to get the text of the first Marc data line in the record.
|
62
|
+
function(:readonly_control_006_field) {|which = 1| which -= 1 ; b.span(:id => "Control_Field_006ReadOnly_line#{which}_control")}
|
63
|
+
function(:readonly_control_007_field) {|which = 1| which -= 1 ; b.span(:id => "Control_Field_007ReadOnly_line#{which}_control")}
|
64
|
+
function(:readonly_tag_field) {|which = 1| which -= 1 ; b.span(:id => "dataField_tag_id_readOnly_line#{which}_control")}
|
65
|
+
function(:readonly_ind1_field) {|which = 1| which -= 1 ; b.span(:id => "dataField_ind1_id_readOnly_line#{which}_control")}
|
66
|
+
function(:readonly_ind2_field) {|which = 1| which -= 1 ; b.span(:id => "dataField_ind2_id_readOnly_line#{which}_control")}
|
67
|
+
function(:readonly_data_field) {|which = 1| which -= 1 ; b.span(:id => "dataField_value_id_readOnly_line#{which}_control")}
|
51
68
|
end
|
52
69
|
|
53
70
|
# Add the first Marc Data Line to a new Bib Editor record.
|
@@ -31,12 +31,20 @@ module OLE_QA::Framework::OLELS
|
|
31
31
|
element(:receipt_status_selector) {b.select_list(:id => "OleReceiptStatusField_control")}
|
32
32
|
element(:holding_notes_toggle) {b.a(:id => "OleHoldingNotes_toggle")}
|
33
33
|
element(:holdings_notes_toggle) {b.a(:id => "OleHoldingNotes_toggle")}
|
34
|
+
# Read-Only Elements (non-iterative fields not requiring input)
|
35
|
+
element(:readonly_edit_button) {b.button(:text => /Edit/)}
|
36
|
+
element(:readonly_location) {b.span(:id => 'OleHoldingLocation_control')}
|
37
|
+
element(:readonly_prefix) {b.span(:id => 'OleHoldingCallNumberPrefix_control')}
|
38
|
+
element(:readonly_call_number) {b.span(:id => 'OleHoldingCallNumber_control')}
|
39
|
+
element(:readonly_call_number_type) {b.span(:id => 'OleHoldingShelvingScheme_control')}
|
40
|
+
element(:readonly_shelving_order) {b.span(:id => 'OleHoldingShelvingOrder_control')}
|
41
|
+
element(:readonly_created_by) {b.span(:id => 'createdByHolding_control')}
|
42
|
+
element(:readonly_created_date) {b.span(:id => 'createdDateHolding_control')}
|
34
43
|
end
|
35
44
|
|
36
45
|
# Wait for location field to appear when opening page.
|
37
46
|
def wait_for_elements
|
38
47
|
super
|
39
|
-
@wait_on << :location_field
|
40
48
|
end
|
41
49
|
|
42
50
|
def set_lines
|
@@ -59,6 +59,16 @@ module OLE_QA::Framework::OLELS
|
|
59
59
|
element(:staff_only_checkbox) {b.checkbox(:id => "oleItemStaffOnly_control")}
|
60
60
|
# Extended Information
|
61
61
|
element(:high_density_storage_field) {b.text_field(:id => "oleItemHighDensityStorage_control")}
|
62
|
+
# Read-Only Elements (non-iterative elements not requiring input)
|
63
|
+
element(:readonly_edit_button) {b.button(:text => /Edit/)}
|
64
|
+
element(:readonly_item_id) {b.span(:id => 'oleItemIdentifier_ID_control')}
|
65
|
+
element(:readonly_barcode) {b.span(:id => 'oleItemAccessInformationBarcode_control')}
|
66
|
+
element(:readonly_enumeration) {b.span(:id => 'oleItemEnumeration_control')}
|
67
|
+
element(:readonly_chronology) {b.span(:id => 'oleItemChronology_control')}
|
68
|
+
element(:readonly_copy_number) {b.span(:id => 'oleItemCopyNumber_control')}
|
69
|
+
element(:readonly_item_status) {b.span(:id => 'oleItemStatusReadOnly_control')}
|
70
|
+
element(:readonly_item_type) {b.span(:id => 'oleItemItemType_control')}
|
71
|
+
element(:readonly_fast_add) {b.span(:id => 'oleItemFastAdd_control')}
|
62
72
|
end
|
63
73
|
|
64
74
|
# Set commonly-used functions on the Item Editor page.
|
@@ -53,10 +53,26 @@ describe 'The Bib Editor' do
|
|
53
53
|
elements.include?(:control_007_set_button).should be_true
|
54
54
|
elements.include?(:control_007_clear_button).should be_true
|
55
55
|
elements.include?(:control_008_field).should be_true
|
56
|
+
# Read-Only Elements (non-iterative fields, no input required)
|
57
|
+
elements.should include(:readonly_edit_button)
|
58
|
+
elements.should include(:readonly_created_by)
|
59
|
+
elements.should include(:readonly_created_date)
|
60
|
+
elements.should include(:readonly_leader_field)
|
61
|
+
elements.should include(:readonly_control_001_field)
|
62
|
+
elements.should include(:readonly_control_003_field)
|
63
|
+
elements.should include(:readonly_control_005_field)
|
64
|
+
elements.should include(:readonly_control_008_field)
|
56
65
|
end
|
57
66
|
|
58
67
|
it 'should have bib editor functions' do
|
59
68
|
functions = @bib_editor.functions
|
69
|
+
# Read-Only Elements (iterative fields, input required to specify which)
|
70
|
+
functions.should include(:readonly_control_006_field)
|
71
|
+
functions.should include(:readonly_control_007_field)
|
72
|
+
functions.should include(:readonly_tag_field)
|
73
|
+
functions.should include(:readonly_ind1_field)
|
74
|
+
functions.should include(:readonly_ind2_field)
|
75
|
+
functions.should include(:readonly_data_field)
|
60
76
|
end
|
61
77
|
|
62
78
|
it 'should start with one data line added' do
|
@@ -47,6 +47,21 @@ describe 'An OLELS Instance Editor page' do
|
|
47
47
|
elements.include?(:receipt_status_selector).should be_true
|
48
48
|
elements.include?(:holding_notes_toggle).should be_true
|
49
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
|
+
# 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.
|
50
65
|
end
|
51
66
|
|
52
67
|
it 'should start with line objects' do
|
@@ -75,6 +75,17 @@ describe 'An OLELS Item Editor page' do
|
|
75
75
|
elements.include?(:staff_only_checkbox).should be_true
|
76
76
|
# Extended Information
|
77
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
|
+
|
78
89
|
end
|
79
90
|
|
80
91
|
it 'should start with an item note' 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: 2.6.
|
4
|
+
version: 2.6.5
|
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-09-
|
12
|
+
date: 2013-09-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|