sus-fixtures-async-webdriver 0.1.1 → 0.2.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: e0aa6e207f1db7e7df17563416fbbfeee3c4e28c33046fddaade0b0ee243c64b
4
- data.tar.gz: a51d687121cf6c59f01dd3c0c3441a02234009102a8895ac1925d0c6fd6ba78d
3
+ metadata.gz: 7384e4e769f3445e6f214faa5616684391824be5d669a1fdb068ce4a3fe80029
4
+ data.tar.gz: bd8cfce3a18642f3ba33854937d0d125be63c2e5b7ac9d306f81892b2c7c9e7d
5
5
  SHA512:
6
- metadata.gz: 3f73cbbb3f69d3d6bad842be7fb6616db51f5b64d5348d3f5c8080224651ac6a95eb2ce5a7f99811d14d6bc03f510423babf87babcb8b083684318060aef2310
7
- data.tar.gz: 2cc953f0db8ac69a4b78bf19d507cf6506ef9f702c530692e295f1379bedc7cb418d3d385481de96eca9fcdf797919b12efbd43f592f88d00781f3f64c17b697
6
+ metadata.gz: 9907b3d1a4469b61841234948c28ecf4c54f13af22dc44f404e706e394f53d2d3bbd92c050b4201a616fa4e074c790c0b5340a3d59cf7fc56a1f52c8aee62de9
7
+ data.tar.gz: 63c7d5f917dd9662eaf9d2288f5a9752008ee6ab679467bb8fbc82932a44d92668a8a3df73206894b0f6ff023f9ad3337df5bce5afae066da687b09b4dec8525
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2023, by Samuel Williams.
4
+ # Copyright, 2023-2024, by Samuel Williams.
5
5
 
6
- require 'async/webdriver'
7
- require 'async/webdriver/bridge/pool'
6
+ require "async/webdriver"
7
+ require "async/webdriver/bridge/pool"
8
8
 
9
9
  module Sus
10
10
  module Fixtures
@@ -26,9 +26,16 @@ module Sus
26
26
  end
27
27
  end
28
28
 
29
+ def make_session
30
+ SessionContext.pool.session.tap do |session|
31
+ # 1 second timeout for implicit waits.
32
+ session.implicit_wait_timeout = 1000
33
+ end
34
+ end
35
+
29
36
  # The current session, that represents the browser window.
30
37
  def session
31
- @session ||= SessionContext.pool.session
38
+ @session ||= make_session
32
39
  end
33
40
 
34
41
  def before
@@ -37,7 +44,7 @@ module Sus
37
44
  @session = nil
38
45
  end
39
46
 
40
- def after
47
+ def after(error = nil)
41
48
  if @session
42
49
  SessionContext.pool.reuse(@session)
43
50
  @session = nil
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2023, by Samuel Williams.
4
+ # Copyright, 2023-2024, by Samuel Williams.
5
5
 
6
6
  module Sus
7
7
  module Fixtures
8
8
  module Async
9
9
  module WebDriver
10
- VERSION = "0.1.1"
10
+ VERSION = "0.2.0"
11
11
  end
12
12
  end
13
13
  end
data/readme.md CHANGED
@@ -26,8 +26,8 @@ We welcome contributions to this project.
26
26
 
27
27
  ### Developer Certificate of Origin
28
28
 
29
- This project uses the [Developer Certificate of Origin](https://developercertificate.org/). All contributors to this project must agree to this document to have their contributions accepted.
29
+ In order to protect users of this project, we require all contributors to comply with the [Developer Certificate of Origin](https://developercertificate.org/). This ensures that all contributions are properly licensed and attributed.
30
30
 
31
- ### Contributor Covenant
31
+ ### Community Guidelines
32
32
 
33
- This project is governed by the [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.
33
+ This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sus-fixtures-async-webdriver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -37,7 +37,7 @@ cert_chain:
37
37
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
38
38
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
39
39
  -----END CERTIFICATE-----
40
- date: 2024-05-04 00:00:00.000000000 Z
40
+ date: 2024-09-20 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: async-webdriver
@@ -68,7 +68,7 @@ licenses:
68
68
  - MIT
69
69
  metadata:
70
70
  documentation_uri: https://socketry.github.io/sus-fixtures-async-webdriver/
71
- funding_uri: https://github.com/sponsors/ioquatix
71
+ funding_uri: https://github.com/sponsors/ioquatix/
72
72
  source_code_uri: https://github.com/socketry/sus-fixtures-async-webdriver.git
73
73
  post_install_message:
74
74
  rdoc_options: []
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  requirements: []
88
- rubygems_version: 3.5.3
88
+ rubygems_version: 3.5.11
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: A set of sus fixtures for writing integration tests.
metadata.gz.sig CHANGED
Binary file