ole-qa-framework 2.3.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/common/page.rb CHANGED
@@ -68,5 +68,27 @@ module OLE_QA::Framework
68
68
  def wait_for_page_to_load
69
69
  @wait_on.each { |element| wait_for_element(element) }
70
70
  end
71
+
72
+ # Set screen elements common to most or all pages across the OLE interface.
73
+ def set_elements
74
+ # These elements exist outside of any frame, so @browser is used to force
75
+ # Watir-Webdriver to give access to a bare browser even on a page with a frame.
76
+ # See {OLE_QA::Framework::Helpers#browser} for frame handling.
77
+ element(:login_field) {@browser.text_field(:name => 'backdoorId')}
78
+ element(:login_button) {@browser.input(:class => 'go', :value => 'Login')}
79
+ element(:logout_button) {@browser.input(:class => 'go', :value => 'Logout')}
80
+ element(:login_confirmation) {@browser.div(:id => 'login-info').strong(:text => /Impersonating User\:/)}
81
+ end
82
+
83
+ # Set functions common to most or all pages across the OLE interface.
84
+ def set_functions
85
+ # Login as a given user.
86
+ # @param username [String] The username to use.
87
+ # @return [Boolean] Whether the login process succeeded.
88
+ function(:login) {|as_who = 'ole-khuntley'| raise OLE_QA::Framework::Error,"Login field not present on this page: #{self.class.name}" unless login_field.present? ; login_field.set(as_who) ; login_button.click ; login_confirmation.text.match(/#{as_who}/)}
89
+ # Logout from previous login.
90
+ # @return [Boolean] Whether the logout process succeeded.
91
+ function(:logout) { logout_button.click ; login_confirmation.present? ? false : true}
92
+ end
71
93
  end
72
94
  end
@@ -1,7 +1,6 @@
1
1
  # Default options for using development environment.
2
2
  ---
3
- :base_url: http://dev.ole.kuali.org/
4
- :ls_url: http://dev.rice2.ole.kuali.org/
3
+ :url: http://dev.ole.kuali.org/
5
4
  :headless?: true
6
5
  :implicit_wait: 0
7
6
  :explicit_wait: 15
@@ -1,7 +1,6 @@
1
1
  # Default options for non-development use.
2
2
  ---
3
- :base_url: http://tst.ole.kuali.org/
4
- :ls_url: http://tst.rice2.ole.kuali.org/
3
+ :url: http://tst.ole.kuali.org/
5
4
  :headless?: true
6
5
  :implicit_wait: 0
7
6
  :explicit_wait: 15
@@ -1,8 +1,7 @@
1
- # Default options for non-development use.
1
+ # Default options for using development environment.
2
2
  ---
3
- :base_url: http://tst.ole.kuali.org/
4
- :ls_url: http://tst.rice2.ole.kuali.org/
3
+ :url: http://dev.ole.kuali.org/
5
4
  :headless?: true
6
5
  :implicit_wait: 0
7
6
  :explicit_wait: 15
8
- :doc_wait: 45
7
+ :doc_wait: 60
@@ -13,21 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module OLE_QA::Framework::Page_Helpers
16
- # Login as a given user.
17
- # @param username [String] The username to use.
18
- # @return [Boolean] Whether the login process succeeded.
19
- def login(username)
20
- raise OLE_QA::Framework::Error,"Login field not present on this page: #{self.class.name}" unless @browser.text_field(:name => "backdoorId").present?
21
- @browser.text_field(:name => "backdoorId").set(username)
22
- @browser.input(:class => "go", :value => "Login").click
23
- @browser.div(:id => "login-info").strong(:text => /Impersonating User\:/, :text => /#{username}/).present?
24
- end
25
16
 
26
- # Logout from previous login.
27
- # @return [Boolean] Whether the logout process succeeded.
28
- def logout
29
- @browser.input(:class => "go", :value => "Logout").click
30
- # Return false if still impersonating user, true if not.
31
- @browser.div(:id => "login-info").strong(:text => /Impersonating User\:/).present? ? false : true
32
- end
33
17
  end
@@ -79,12 +79,12 @@ module OLE_QA
79
79
  class Session
80
80
 
81
81
  # OLE Installation Base URL
82
- # - Also serves as OLE Financial System Main Menu URL
83
- attr_reader :base_url
84
- alias :fs_url :base_url
85
-
86
- # OLE Library System Base URL
87
- attr_reader :ls_url
82
+ # (e.g. http://ole.your-site.edu)
83
+ attr_reader :url
84
+ # @deprecated Included for backwards compatibility. Unnecessary after 1.0.0 unification (milestone m2-r13245).
85
+ alias :fs_url :url
86
+ alias :base_url :url
87
+ alias :ls_url :url
88
88
 
89
89
  # Wait period (in seconds) used by OLE QAF Web Element functions
90
90
  attr_accessor :explicit_wait
@@ -93,10 +93,8 @@ module OLE_QA
93
93
  attr_reader :options
94
94
 
95
95
  # Options hash keys:
96
- # :base_url => "http://tst.ole.kuali.org/"
96
+ # :url => "http://tst.ole.kuali.org/"
97
97
  # (URL for OLE Installation)
98
- # :ls_url => "http://tst.rice2.ole.kuali.org"
99
- # (URL for OLE Library System Rice Instance)
100
98
  # :headless => true/false
101
99
  # (Use Headless gem to handle XVFB session)
102
100
  # :implicit_wait => NN
@@ -124,8 +122,7 @@ module OLE_QA
124
122
  end
125
123
 
126
124
  # Globalize options to accessors
127
- @base_url = @options[:base_url]
128
- @ls_url = @options[:ls_url]
125
+ @url = @options[:url]
129
126
  @explicit_wait = @options[:explicit_wait]
130
127
  @doc_wait = @options[:doc_wait]
131
128
 
@@ -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-r13146 :: 2013-07-18'
18
+ OLE_VERSION = '1.0.0 - M2-r13245 :: 2013-07-24 (Unification)'
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.3.0'
18
+ VERSION = '2.4.0'
19
19
  end
20
20
  end
@@ -29,6 +29,7 @@ module OLE_QA::Framework::OLEFS
29
29
 
30
30
  # Set commonly-used lookup page functions.
31
31
  def set_functions
32
+ super
32
33
  # Return a search results row by searching on the text in a given table cell.
33
34
  function(:row_by_td_text) {|which| b.td(:xpath => "//table[@id='row']/descendant::td[contains(text(),'#{which}')]").parent}
34
35
  function(:row_by_text) {|which| b.td(:xpath => "//table[@id='row']/descendant::td[contains(text(),'#{which}')]").parent}
@@ -18,9 +18,9 @@ module OLE_QA::Framework::OLEFS
18
18
  # Set URL and initialize.
19
19
  def initialize(ole_session)
20
20
  # Set @url instance variable from OLE Base URL variable
21
- url = ole_session.base_url + \
21
+ url = ole_session.url + \
22
22
  'portal.do?channelTitle=Building&channelUrl=kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.ole.sys.businessobject.Building&docFormKey=88888888&returnLocation='\
23
- + ole_session.base_url + \
23
+ + ole_session.url + \
24
24
  'portal.do&hideReturnLink=true'
25
25
  super(ole_session, url)
26
26
  end
@@ -18,8 +18,8 @@ module OLE_QA::Framework::OLEFS
18
18
  # Initializes with Load Summary Lookup URL.
19
19
  # (Requires document ID number to retrieve by URL.)
20
20
  def initialize(ole_session)
21
- url = ole_session.fs_url + 'portal.do?channelTitle=Load%20Reports&channelUrl=batchlookup.do?methodToCall=start&businessObjectClassName=org.kuali.ole.select.businessobject.OleLoadSumRecords&docFormKey=88888888&returnLocation='
22
- url += ole_session.fs_url + 'portal.do&hideReturnLink=true'
21
+ url = ole_session.url + 'portal.do?channelTitle=Load%20Reports&channelUrl=batchlookup.do?methodToCall=start&businessObjectClassName=org.kuali.ole.select.businessobject.OleLoadSumRecords&docFormKey=88888888&returnLocation='
22
+ url += ole_session.url + 'portal.do&hideReturnLink=true'
23
23
  super(ole_session, url)
24
24
  end
25
25
 
@@ -16,8 +16,8 @@ module OLE_QA::Framework::OLEFS
16
16
  # An OLE Financial System Load Summary Lookup page.
17
17
  class Load_Summary_Lookup < Lookup
18
18
  def initialize(ole_session)
19
- url = ole_session.fs_url + 'portal.do?channelTitle=Load%20Reports&channelUrl=batchlookup.do?methodToCall=start&businessObjectClassName=org.kuali.ole.select.businessobject.OleLoadSumRecords&docFormKey=88888888&returnLocation='
20
- url += ole_session.fs_url + 'portal.do&hideReturnLink=true'
19
+ url = ole_session.url + 'portal.do?channelTitle=Load%20Reports&channelUrl=batchlookup.do?methodToCall=start&businessObjectClassName=org.kuali.ole.select.businessobject.OleLoadSumRecords&docFormKey=88888888&returnLocation='
20
+ url += ole_session.url + 'portal.do&hideReturnLink=true'
21
21
  super(ole_session, url)
22
22
  end
23
23
 
@@ -17,7 +17,7 @@ module OLE_QA::Framework::OLEFS
17
17
  class Main_Menu < OLE_QA::Framework::Page
18
18
  # Set URL and initialize.
19
19
  def initialize(ole_session)
20
- super(ole_session, ole_session.base_url)
20
+ super(ole_session, ole_session.url)
21
21
  end
22
22
  end
23
23
  end
@@ -16,7 +16,7 @@ module OLE_QA::Framework::OLEFS
16
16
  # An OLE Financial System Payment Request Document.
17
17
  class Payment_Request < PURAP_Document
18
18
  def initialize(ole_session)
19
- new_preq_url = ole_session.fs_url + 'portal.do?channelTitle=Payment Request&channelUrl=selectOlePaymentRequest.do?methodToCall=docHandler&command=initiate&docTypeName=OLE_PREQ'
19
+ new_preq_url = ole_session.url + 'portal.do?channelTitle=Payment Request&channelUrl=selectOlePaymentRequest.do?methodToCall=docHandler&command=initiate&docTypeName=OLE_PREQ'
20
20
  super(ole_session, new_preq_url)
21
21
  end
22
22
 
@@ -16,7 +16,7 @@ module OLE_QA::Framework::OLEFS
16
16
  # A Payment Request Creation screen in the OLE Financial System
17
17
  class PREQ_Creation < E_Doc
18
18
  def initialize(ole_session)
19
- url = ole_session.fs_url + 'portal.do?channelTitle=Payment Request&channelUrl=selectOlePaymentRequest.do?methodToCall=docHandler&command=initiate&docTypeName=OLE_PREQ'
19
+ url = ole_session.url + 'portal.do?channelTitle=Payment Request&channelUrl=selectOlePaymentRequest.do?methodToCall=docHandler&command=initiate&docTypeName=OLE_PREQ'
20
20
  super(ole_session, url)
21
21
  end
22
22
 
@@ -17,10 +17,10 @@ module OLE_QA::Framework::OLEFS
17
17
  # - Many screen elements are identical to those of a Requisition
18
18
  # - Line Item handling is identical to that of a Requisition
19
19
  class Purchase_Order < PURAP_Document
20
- # Initialize with a URL of OLE_QA::Framework::Session.base_url
20
+ # Initialize with a URL of OLE_QA::Framework::Session.url
21
21
  # @note OLEFS Purchase Orders do not have a direct link to open new documents.
22
22
  def initialize(ole_session)
23
- super(ole_session, ole_session.base_url)
23
+ super(ole_session, ole_session.url)
24
24
  end
25
25
 
26
26
  # Create a new line item object on the purchase order.
@@ -16,7 +16,7 @@ module OLE_QA::Framework::OLEFS
16
16
  # An OLE Financial System Receiving Document
17
17
  class Receiving_Document < PURAP_Document
18
18
  def initialize(ole_session)
19
- new_receiving_doc_url = ole_session.fs_url + 'portal.do?channelTitle=Receiving&channelUrl=selectOleLineItemReceiving.do?methodToCall=docHandler&command=initiate&docTypeName=OLE_RCVL'
19
+ new_receiving_doc_url = ole_session.url + 'portal.do?channelTitle=Receiving&channelUrl=selectOleLineItemReceiving.do?methodToCall=docHandler&command=initiate&docTypeName=OLE_RCVL'
20
20
  super(ole_session, new_receiving_doc_url)
21
21
  end
22
22
 
@@ -17,7 +17,7 @@ module OLE_QA::Framework::OLEFS
17
17
  class Requisition < PURAP_Document
18
18
  # Set URL and initialize.
19
19
  def initialize(ole_session)
20
- new_requisition_url = ole_session.fs_url + 'portal.do?channelTitle=Requisition&channelUrl=purapOleRequisition.do?methodToCall=docHandler&command=initiate&docTypeName=OLE_REQS'
20
+ new_requisition_url = ole_session.url + 'portal.do?channelTitle=Requisition&channelUrl=purapOleRequisition.do?methodToCall=docHandler&command=initiate&docTypeName=OLE_REQS'
21
21
  super(ole_session, new_requisition_url)
22
22
  end
23
23
 
@@ -18,9 +18,9 @@ module OLE_QA::Framework::OLEFS
18
18
  # Set URL and initialize.
19
19
  def initialize(ole_session)
20
20
  # Set @url instance variable from OLE Base URL Variable
21
- url = ole_session.base_url + \
21
+ url = ole_session.url + \
22
22
  'portal.do?channelTitle=Vendor&channelUrl=kr/lookup.do?methodToCall=start&businessObjectClassName=org.kuali.ole.vnd.businessobject.VendorDetail&docFormKey=88888888&returnLocation=' \
23
- + ole_session.base_url + \
23
+ + ole_session.url + \
24
24
  'portal.do&hideReturnLink=true'
25
25
  super(ole_session, url)
26
26
  end
@@ -33,8 +33,8 @@ module OLE_QA::Framework::OLELS
33
33
  # correctly.
34
34
  #
35
35
  def initialize(ole_session)
36
- editor_url = ole_session.ls_url + 'portal.do?channelTitle=Editor&channelUrl='
37
- editor_url += ole_session.ls_url + 'ole-kr-krad/editorcontroller?viewId=EditorView&methodToCall=load&docCategory=work&docType=bibliographic&docFormat=marc&editable=true'
36
+ editor_url = ole_session.url + 'portal.do?channelTitle=Editor&channelUrl='
37
+ editor_url += ole_session.url + 'ole-kr-krad/editorcontroller?viewId=EditorView&methodToCall=load&docCategory=work&docType=bibliographic&docFormat=marc&editable=true'
38
38
  super(ole_session, editor_url)
39
39
  set_lines if defined?(self.set_lines)
40
40
  end
@@ -17,8 +17,8 @@ module OLE_QA::Framework::OLELS
17
17
  class Describe_Workbench < Lookup
18
18
  # Set URL
19
19
  def initialize(ole_session)
20
- url = ole_session.ls_url + 'portal.do?channelTitle=Describe Workbench&channelUrl='
21
- url += ole_session.ls_url + 'ole-kr-krad/describeworkbenchcontroller?viewId=DescribeWorkBenchView&methodToCall=start'
20
+ url = ole_session.url + 'portal.do?channelTitle=Describe Workbench&channelUrl='
21
+ url += ole_session.url + 'ole-kr-krad/describeworkbenchcontroller?viewId=DescribeWorkBenchView&methodToCall=start'
22
22
  super(ole_session, url)
23
23
  end
24
24
 
@@ -16,8 +16,8 @@ module OLE_QA::Framework::OLELS
16
16
  # The Loan page in the OLE Library System.
17
17
  class Loan < OLE_QA::Framework::Page
18
18
  def initialize(ole_session)
19
- url = ole_session.ls_url + 'portal.do?channelTitle=Loan&channelUrl='
20
- url += ole_session.ls_url + 'ole-kr-krad/loancontroller?viewId=PatronItemView&methodToCall=start'
19
+ url = ole_session.url + 'portal.do?channelTitle=Loan&channelUrl='
20
+ url += ole_session.url + 'ole-kr-krad/loancontroller?viewId=PatronItemView&methodToCall=start'
21
21
  super(ole_session, url)
22
22
  end
23
23
 
@@ -73,6 +73,7 @@ module OLE_QA::Framework::OLELS
73
73
 
74
74
  # Set commonly-used functions for loan screen.
75
75
  def set_functions
76
+ super
76
77
  # Current Item Functions - Pass a (1-based) numerical position to refer to a specific item line.
77
78
  # (Defaults to 1.)
78
79
  function(:item_selector) {|which = 1| b.checkbox(:id => "checkId_line#{which-1}_control")}
@@ -17,7 +17,7 @@ module OLE_QA::Framework::OLELS
17
17
  class Main_Menu < OLE_QA::Framework::Page
18
18
  # Set page URL to OLE Library System URL
19
19
  def initialize(ole_session)
20
- url = ole_session.ls_url
20
+ url = ole_session.url
21
21
  super(ole_session, url)
22
22
  end
23
23
 
@@ -16,9 +16,9 @@ module OLE_QA::Framework::OLELS
16
16
  # The Patron lookup page in the OLE Library System.
17
17
  class Patron_Lookup < Lookup
18
18
  def initialize(ole_session)
19
- url = ole_session.ls_url + 'portal.do?channelTitle=Patron&channelUrl='
20
- url += ole_session.ls_url + 'ole-kr-krad/lookup?methodToCall=start&dataObjectClassName=org.kuali.ole.patron.bo.OlePatronDocument&returnLocation='
21
- url += ole_session.ls_url + 'portal.do&hideReturnLink=true&showMaintenanceLinks=true'
19
+ url = ole_session.url + 'portal.do?channelTitle=Patron&channelUrl='
20
+ url += ole_session.url + 'ole-kr-krad/lookup?methodToCall=start&dataObjectClassName=org.kuali.ole.patron.bo.OlePatronDocument&returnLocation='
21
+ url += ole_session.url + 'portal.do&hideReturnLink=true&showMaintenanceLinks=true'
22
22
  super(ole_session, url)
23
23
  end
24
24
 
@@ -16,8 +16,8 @@ module OLE_QA::Framework::OLELS
16
16
  # The Return page in the OLE Library System.
17
17
  class Return < OLE_QA::Framework::Page
18
18
  def initialize(ole_session)
19
- url = ole_session.ls_url + 'portal.do?channelTitle=Loan&channelUrl='
20
- url += ole_session.ls_url + 'ole-kr-krad/loancontroller?viewId=ReturnItemView&methodToCall=start'
19
+ url = ole_session.url + 'portal.do?channelTitle=Loan&channelUrl='
20
+ url += ole_session.url + 'ole-kr-krad/loancontroller?viewId=ReturnItemView&methodToCall=start'
21
21
  super(ole_session, url)
22
22
  end
23
23
 
@@ -51,6 +51,7 @@ module OLE_QA::Framework::OLELS
51
51
 
52
52
  # Set commonly used functions on return page.
53
53
  def set_functions
54
+ super
54
55
  function(:item_barcode_link) {|which = 1| b.div(:id => "returnBarcode_line#{which-1}").a}
55
56
  function(:item_title) {|which = 1| b.span(:id => "returnTitle_line#{which-1}_control")}
56
57
  function(:item_author) {|which = 1| b.span(:id => "returnAuthor_line#{which-1}_control")}
@@ -17,8 +17,8 @@ module OLE_QA::Framework::OLELS
17
17
  class Staff_Upload < OLE_QA::Framework::Page
18
18
 
19
19
  def initialize(ole_session)
20
- url = ole_session.ls_url + 'portal.do?channelTitle=Staff%20Upload&channelUrl='
21
- url += ole_session.ls_url + 'ole-kr-krad/staffuploadcontroller?viewId=StaffUploadView&methodToCall=start&__login_user=admin&user=ole-khuntley'
20
+ url = ole_session.url + 'portal.do?channelTitle=Staff%20Upload&channelUrl='
21
+ url += ole_session.url + 'ole-kr-krad/staffuploadcontroller?viewId=StaffUploadView&methodToCall=start&__login_user=admin&user=ole-khuntley'
22
22
  super(ole_session, url)
23
23
  end
24
24
 
@@ -43,6 +43,7 @@ module OLE_QA::Framework::OLELS
43
43
 
44
44
  # Add commonly-used functions for staff upload screen.
45
45
  def set_functions
46
+ super
46
47
  # Clicks the upload button and waits for a message to appear.
47
48
  # - Returns the text of the upload message.
48
49
  function(:upload) {upload_button.click ; wait_for_page_to_load ; message.when_present.text.strip }
@@ -41,4 +41,17 @@ describe "A Page" do
41
41
  @page.browser.class.should == Watir::Frame
42
42
  end
43
43
 
44
+ it 'should be able to login as another user' do
45
+ @page.open
46
+ @page.login('ole-abeal').should be_true
47
+ end
48
+
49
+ it 'should be able to logout' do
50
+ @page.logout.should be_true
51
+ end
52
+
53
+ it 'should raise an error if the login field is not present' do
54
+ @ole.open('www.google.com')
55
+ lambda {@page.login}.should raise_error(error=OLE_QA::Framework::Error)
56
+ end
44
57
  end
File without changes
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.3.0
4
+ version: 2.4.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-07-24 00:00:00.000000000 Z
12
+ date: 2013-07-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -200,7 +200,6 @@ files:
200
200
  - spec/common/page_spec.rb
201
201
  - spec/common/subline_object_spec.rb
202
202
  - spec/modules/qa_helpers_spec.rb
203
- - spec/modules/qa_page_helpers_spec.rb
204
203
  - spec/olefs/accounting_line_spec.rb
205
204
  - spec/olefs/building_lookup_spec.rb
206
205
  - spec/olefs/copies_line_spec.rb
@@ -213,7 +212,6 @@ files:
213
212
  - spec/olefs/lookup_spec.rb
214
213
  - spec/olefs/main_menu_spec.rb
215
214
  - spec/olefs/notes_line_spec.rb
216
- - spec/olefs/patron_lookup_spec.rb
217
215
  - spec/olefs/payment_request_spec.rb
218
216
  - spec/olefs/preq_creation_spec.rb
219
217
  - spec/olefs/preq_line_item_spec.rb
@@ -240,6 +238,7 @@ files:
240
238
  - spec/olels/main_menu_spec.rb
241
239
  - spec/olels/ownership_extent_line_spec.rb
242
240
  - spec/olels/ownership_note_spec.rb
241
+ - spec/olels/patron_lookup_spec.rb
243
242
  - spec/olels/return_spec.rb
244
243
  - spec/olels/staff_upload_spec.rb
245
244
  - spec/spec_helper.rb
@@ -276,7 +275,6 @@ test_files:
276
275
  - spec/common/page_spec.rb
277
276
  - spec/common/subline_object_spec.rb
278
277
  - spec/modules/qa_helpers_spec.rb
279
- - spec/modules/qa_page_helpers_spec.rb
280
278
  - spec/olefs/accounting_line_spec.rb
281
279
  - spec/olefs/building_lookup_spec.rb
282
280
  - spec/olefs/copies_line_spec.rb
@@ -289,7 +287,6 @@ test_files:
289
287
  - spec/olefs/lookup_spec.rb
290
288
  - spec/olefs/main_menu_spec.rb
291
289
  - spec/olefs/notes_line_spec.rb
292
- - spec/olefs/patron_lookup_spec.rb
293
290
  - spec/olefs/payment_request_spec.rb
294
291
  - spec/olefs/preq_creation_spec.rb
295
292
  - spec/olefs/preq_line_item_spec.rb
@@ -316,6 +313,7 @@ test_files:
316
313
  - spec/olels/main_menu_spec.rb
317
314
  - spec/olels/ownership_extent_line_spec.rb
318
315
  - spec/olels/ownership_note_spec.rb
316
+ - spec/olels/patron_lookup_spec.rb
319
317
  - spec/olels/return_spec.rb
320
318
  - spec/olels/staff_upload_spec.rb
321
319
  - spec/spec_helper.rb
@@ -1,43 +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 'The Helpers module' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
- @fs_page = OLE_QA::Framework::Page.new(@ole, @ole.fs_url)
23
- @ls_page = OLE_QA::Framework::Page.new(@ole, @ole.ls_url)
24
- end
25
-
26
- it 'should be able to login to OLEFS' do
27
- @fs_page.open
28
- @fs_page.login("ole-abeal").should be_true
29
- end
30
-
31
- it 'should be able to logout from OLEFS' do
32
- @fs_page.logout.should be_true
33
- end
34
-
35
- it 'should be able to login to OLELS' do
36
- @ls_page.open
37
- @ls_page.login("dev2").should be_true
38
- end
39
-
40
- it 'should be able to logout from OLELS' do
41
- @ls_page.logout.should be_true
42
- end
43
- end