nab_com_au 0.3.1 → 0.4.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4e51b12e8c983e791870b45d69458bd80d82d38f5b1ed8c101a9cc498bf383e
4
- data.tar.gz: abed326edc44d32d8a10e1bab6742afdd4d137e1c6d1aa014563619113e926e2
3
+ metadata.gz: 88a93b5059683cf91e4d39ec681e1b50024be3f891d4058c8fe91b91a762c89f
4
+ data.tar.gz: 21464a03c7c7409e456c764abc6fe3d242396ff2ecc740934f80a06e594db744
5
5
  SHA512:
6
- metadata.gz: ffc30eb4f4abefda47e4811c0beb43a8b43371cce19270a23850c1f8d3ddf2b4595ab438b743486be52202d02f42b5bf6a9c0936125adac0e745d1d9b77b5126
7
- data.tar.gz: eaac7048b7c822277ebb6cd368e976a0d60230fc5f5088b7141c9b6dc93df78033bccbd6fd121f0eccbf1fe2dc89cf086f173c3d6e06c63fc65d4b4133221e4f
6
+ metadata.gz: 6f14c5e6c6c6d2464ccbeb122ac7029537934612430b340066d412d278fb928dd1c5a123567e90ca612d609988fc2283ddd00f68d3031002925eaf5953c2d8b4
7
+ data.tar.gz: 53d2b691ac7785097114a952025594b546571f4de41e3a0b19208ab9a523264f36363ccac73d923747fd52e67392f6e99b56b70895ad09e2e72f183fb7317ea1
data/CHANGELOG CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## 20261115
4
4
 
5
+ 0.4.0: ~ NabComAu::Account::PAGE_SELECTORS: /logged_out_xpath/logged_out_selector/, NAB's logged-out notice, upon webaccount 0.9.
6
+
7
+ 1. ~ NabComAu::Account::PAGE_SELECTORS: logged_out_xpath: '' is replaced by logged_out_selector:, matching NAB's "You have been successfully logged out." notice.
8
+ 2. ~ nab_com_au.gemspec: webaccount /'~> 0.8'/'~> 0.9'/
9
+ 3. ~ test/NabComAu/Account_test.rb: The logged-out selector is tested.
10
+ 4. ~ NabComAu::VERSION: /0.3.1/0.4.0/
11
+
12
+
5
13
  0.3.1: ~ NabComAu::Account#login: Names every missing argument at once, by validate_args().
6
14
 
7
15
  1. ~ NabComAu::Account#login: validate_args(username:, password:), in place of raising upon each in turn.
@@ -19,7 +19,7 @@ module NabComAu
19
19
  login_page_password_field_selector: {id: 'password'},
20
20
  login_page_submit_button_selector: {xpath: "//button[contains(text(), 'Login')]"},
21
21
  logout_button_selector: {id: 'logoutButton'},
22
- logged_out_xpath: ''
22
+ logged_out_selector: {xpath: "//*[contains(text(), 'You have been successfully logged out.')]"}
23
23
  }
24
24
 
25
25
  attr_writer :driver
@@ -2,5 +2,5 @@
2
2
  # NabComAu::VERSION
3
3
 
4
4
  module NabComAu
5
- VERSION = '0.3.1'
5
+ VERSION = '0.4.0'
6
6
  end
data/nab_com_au.gemspec CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
36
36
 
37
37
  spec.dependencies = [
38
38
  ['selenium-webdriver', '>= 4.0'],
39
- ['webaccount', '~> 0.8']
39
+ ['webaccount', '~> 0.9']
40
40
  ]
41
41
 
42
42
  spec.development_dependencies = %w{
@@ -31,6 +31,7 @@ describe NabComAu::Account do
31
31
  _(account.send(:login_page_password_field_selector)).must_equal({id: 'password'})
32
32
  _(account.send(:login_page_submit_button_selector)).must_equal({xpath: "//button[contains(text(), 'Login')]"})
33
33
  _(account.send(:logout_button_selector)).must_equal({id: 'logoutButton'})
34
+ _(account.logged_out_selector).must_equal({xpath: "//*[contains(text(), 'You have been successfully logged out.')]"})
34
35
  end
35
36
 
36
37
  it "gives way to a keyword given to new()" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nab_com_au
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -29,14 +29,14 @@ dependencies:
29
29
  requirements:
30
30
  - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: '0.8'
32
+ version: '0.9'
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '0.8'
39
+ version: '0.9'
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: minitest
42
42
  requirement: !ruby/object:Gem::Requirement