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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/sus/fixtures/async/webdriver/session_context.rb +12 -5
- data/lib/sus/fixtures/async/webdriver/version.rb +2 -2
- data/readme.md +3 -3
- data.tar.gz.sig +0 -0
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7384e4e769f3445e6f214faa5616684391824be5d669a1fdb068ce4a3fe80029
|
4
|
+
data.tar.gz: bd8cfce3a18642f3ba33854937d0d125be63c2e5b7ac9d306f81892b2c7c9e7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
7
|
-
require
|
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 ||=
|
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.
|
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
|
-
|
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
|
-
###
|
31
|
+
### Community Guidelines
|
32
32
|
|
33
|
-
This project is
|
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.
|
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-
|
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.
|
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
|