ole-qa-framework 2.1.1 → 2.1.2

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 CHANGED
@@ -1,12 +1,9 @@
1
- ### v2.1.1 - 2013/07/16
1
+ ### v2.1.1 - 2013/07/12
2
2
 
3
3
  * Fix Bib Editor
4
- * update control field IDs for compatibility with M1-r12784
4
+ * Update control field IDs for compatibility with M1-r12784
5
5
  * Fix Editor base Class
6
6
  * move message to Bib Editor, span ID is not universal across editor types
7
- * update element definitions
8
- * Helper Modules
9
- * don't add element or function to array when force=true
10
7
 
11
8
  ### v2.1.0 - 2013/07/10
12
9
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ole-qa-framework (2.1.1)
4
+ ole-qa-framework (2.1.2)
5
5
  headless
6
6
  rspec
7
7
  watir-webdriver
data/Rakefile.rb CHANGED
@@ -12,14 +12,29 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- libdir = File.expand_path(File.dirname(__FILE__))
16
- $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
15
+ loaddir = File.expand_path(File.dirname(__FILE__))
16
+ $LOAD_PATH.unshift(loaddir) unless $LOAD_PATH.include?(loaddir)
17
17
 
18
18
  require 'rubygems'
19
19
  require 'rspec/core/rake_task'
20
20
  require 'bundler/gem_tasks'
21
+ require 'fileutils'
21
22
 
22
23
  desc "Print the current version number."
23
24
  task :version do
24
25
  puts OLE_QA::Framework::VERSION
26
+ end
27
+
28
+ desc "Select a config file from lib/config/alt."
29
+ task :select_config do
30
+ puts 'Enter filename: '
31
+ target_file = STDIN.gets.chomp
32
+ target_file += '.yml' unless target_file =~ /\.yml$/
33
+ file_path = "#{loaddir}/lib/config/"
34
+ if File.exists?(file_path + 'alt/' + target_file)
35
+ FileUtils.cp "#{file_path}alt/#{target_file}", "#{file_path}default_options.yml"
36
+ puts "Successfully copied #{file_path}alt/#{target_file}."
37
+ else
38
+ puts "File not found: #{file_path}alt/#{target_file}"
39
+ end
25
40
  end
File without changes
File without changes
@@ -15,6 +15,6 @@
15
15
  module OLE_QA
16
16
  module Framework
17
17
  # The most recent version of OLE with which this framework is compatible.
18
- OLE_VERSION = '0.8.0 - 1.0.0-M2-r12961 :: 2013-07-11'
18
+ OLE_VERSION = '0.8.0 - 1.0.0-M2-r13146 :: 2013-07-18'
19
19
  end
20
20
  end
@@ -15,6 +15,6 @@
15
15
  module OLE_QA
16
16
  module Framework
17
17
  # The version number for this project.
18
- VERSION = '2.1.1'
18
+ VERSION = '2.1.2'
19
19
  end
20
20
  end
@@ -50,13 +50,12 @@ module OLE_QA::Framework::OLELS
50
50
  element(:close_button) {b.button(:id => "closeEditor")}
51
51
  element(:return_to_search_button) {b.button(:id => "returnToSearch_button")}
52
52
  # Navigation Area Elements
53
- # TODO Check on necessity of plurality for add instance button once it is functioning again. (see OLE-4294)
54
53
  element(:delete_bib_button) {b.div(:id => 'bibLevelActionSection').div(:index => 2).input(:title => "Delete Bib")}
55
54
  element(:add_instance_button) {b.div(:id => 'bibLevelActionSection').div(:index => 2).input(:title => "Add Instance")}
55
+ # @note Vakata Context Menu items are only present on the screen after the containing menu header has been right-clicked.
56
56
  element(:delete_instance_button) {b.div(:id => 'vakata-contextmenu').ul.li(:index => 0).a(:rel => "Delete")}
57
- # FIXME - Redefine these elements.
58
- # element(:add_item_button) {b.imgs(:title => "Add Item")}
59
- # element(:delete_item_button) {b.imgs(:title => "Delete Item")}
57
+ element(:add_item_button) {b.div(:id => 'vakata-contextmenu').ul.li(:index => 2).a(:rel => 'Create')}
58
+ element(:delete_item_button) {b.div(:id => 'vakata-contextmenu').ul.li(:index => 0).a(:rel => 'Delete')}
60
59
  end
61
60
 
62
61
  # Designate elements always expected to be present once the editor has finished loading.
Binary file
Binary file
@@ -56,14 +56,6 @@ describe 'The Bib Editor' do
56
56
  elements.include?(:control_007_set_button).should be_true
57
57
  elements.include?(:control_007_reset_button).should be_true
58
58
  elements.include?(:control_008_field).should be_true
59
- elements.include?(:delete_bib_button).should be_true
60
- elements.include?(:holdings_link).should be_true
61
- elements.include?(:holdings_icon).should be_true
62
- elements.include?(:item_links).should be_true
63
- elements.include?(:add_instance_buttons).should be_true
64
- elements.include?(:delete_instance_buttons).should be_true
65
- elements.include?(:add_item_buttons).should be_true
66
- elements.include?(:delete_item_buttons).should be_true
67
59
  end
68
60
 
69
61
  it 'should start with one data line added' do
@@ -41,12 +41,25 @@ describe 'The Editor base class' do
41
41
  end
42
42
 
43
43
  it 'should have editor elements' do
44
- elements = @editor.methods
44
+ elements = @editor.elements
45
45
  elements.include?(:title).should be_true
46
46
  elements.include?(:submit_button).should be_true
47
47
  elements.include?(:cancel_button).should be_true
48
48
  elements.include?(:close_button).should be_true
49
49
  elements.include?(:return_to_search_button).should be_true
50
+ elements.include?(:delete_bib_button).should be_true
51
+ elements.include?(:add_instance_button).should be_true
52
+ elements.include?(:delete_instance_button).should be_true
53
+ elements.include?(:add_item_button).should be_true
54
+ elements.include?(:delete_item_button).should be_true
55
+ end
56
+
57
+ it 'should have editor functions' do
58
+ functions = @editor.functions
59
+ functions.include?(:save_record).should be_true
60
+ functions.include?(:holdings_link).should be_true
61
+ functions.include?(:holdings_icon).should be_true
62
+ functions.include?(:item_link).should be_true
50
63
  end
51
64
 
52
65
  it 'should wait for a title to be present' 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.1.1
4
+ version: 2.1.2
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-07-18 00:00:00.000000000 Z
12
+ date: 2013-07-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -118,6 +118,7 @@ files:
118
118
  - README.md
119
119
  - ole-qa-framework.gemspec
120
120
  - pkg/ole-qa-framework-2.1.1.gem
121
+ - pkg/ole-qa-framework-2.1.2.gem
121
122
  - pkg/ole-qa-framework-2.1.0.gem
122
123
  - examples/purap_workflow_test.rb
123
124
  - examples/README.md
@@ -204,9 +205,9 @@ files:
204
205
  - lib/olefs/pages/payment_request.rb
205
206
  - lib/olefs/pages/building_lookup.rb
206
207
  - lib/ole-qa-framework.rb
207
- - lib/config/dev_options.yml
208
+ - lib/config/alt/dev_env.yml
209
+ - lib/config/alt/test_env.yml
208
210
  - lib/config/default_options.yml
209
- - lib/config/defaults.yml
210
211
  - lib/ole_qa_framework/COMPATIBILITY.rb
211
212
  - lib/ole_qa_framework/VERSION.rb
212
213
  - lib/docstore/docstore.rb