ole-qa-framework 2.4.0 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,4 +1,20 @@
1
- ### v2.3.0 - 2013/07/??
1
+ ### v2.4.1 - 2013/07/30
2
+
3
+ * Small Fixes
4
+ * Update .open method to default to @url
5
+ * Update documentation
6
+ * Update .login function on page - return false if no response
7
+
8
+ ### v2.4.0 - 2013/07/25
9
+
10
+ * Unify URLs for Unified OLE Interface
11
+ * .url method is main URL on Framework Session
12
+ * Aliased for backwards compatibility:
13
+ * .base_url -> .url
14
+ * .ls_url -> .url
15
+ * .fs_url -> .url
16
+
17
+ ### v2.3.0 - 2013/07/24
2
18
 
3
19
  * Pages Added
4
20
  * OLEFS
data/lib/common/page.rb CHANGED
@@ -85,7 +85,7 @@ module OLE_QA::Framework
85
85
  # Login as a given user.
86
86
  # @param username [String] The username to use.
87
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}/)}
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 ; if login_confirmation.present? then login_confirmation.text.match(/#{as_who}/) ? true : false else false end}
89
89
  # Logout from previous login.
90
90
  # @return [Boolean] Whether the logout process succeeded.
91
91
  function(:logout) { logout_button.click ; login_confirmation.present? ? false : true}
@@ -153,7 +153,7 @@ module OLE_QA
153
153
  end
154
154
 
155
155
  # Open a page via URL. (Defaults to @base_url.)
156
- def open(url = @base_url)
156
+ def open(url = @url)
157
157
  @browser.goto(url)
158
158
  end
159
159
 
@@ -15,6 +15,6 @@
15
15
  module OLE_QA
16
16
  module Framework
17
17
  # The version number for this project.
18
- VERSION = '2.4.0'
18
+ VERSION = '2.4.1'
19
19
  end
20
20
  end
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.4.0
4
+ version: 2.4.1
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-25 00:00:00.000000000 Z
12
+ date: 2013-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler