venetian 0.1.3-aarch64-linux → 0.2.0-aarch64-linux
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
- data/README.md +70 -1
- data/exe/aarch64-linux/node +0 -0
- data/exe/aarch64-linux/package/api.json +1 -1
- data/exe/aarch64-linux/package/bin/reinstall_chrome_beta_linux.sh +1 -1
- data/exe/aarch64-linux/package/bin/reinstall_chrome_beta_mac.sh +1 -1
- data/exe/aarch64-linux/package/bin/reinstall_chrome_stable_linux.sh +1 -1
- data/exe/aarch64-linux/package/bin/reinstall_chrome_stable_mac.sh +1 -1
- data/exe/aarch64-linux/package/bin/reinstall_msedge_beta_linux.sh +1 -1
- data/exe/aarch64-linux/package/bin/reinstall_msedge_beta_mac.sh +1 -1
- data/exe/aarch64-linux/package/bin/reinstall_msedge_dev_linux.sh +1 -1
- data/exe/aarch64-linux/package/bin/reinstall_msedge_dev_mac.sh +1 -1
- data/exe/aarch64-linux/package/bin/reinstall_msedge_stable_linux.sh +1 -1
- data/exe/aarch64-linux/package/bin/reinstall_msedge_stable_mac.sh +1 -1
- data/exe/aarch64-linux/package/browsers.json +14 -14
- data/exe/aarch64-linux/package/index.js +1 -16
- data/exe/aarch64-linux/package/lib/bootstrap.js +11 -0
- data/exe/aarch64-linux/package/lib/coreBundle.js +26319 -22732
- data/exe/aarch64-linux/package/lib/server/deviceDescriptorsSource.json +1142 -182
- data/exe/aarch64-linux/package/lib/serverRegistry.js +1 -1
- data/exe/aarch64-linux/package/lib/tools/cli-client/help.json +17 -3
- data/exe/aarch64-linux/package/lib/tools/cli-client/output.js +2 -2
- data/exe/aarch64-linux/package/lib/tools/cli-client/program.js +29 -5
- data/exe/aarch64-linux/package/lib/tools/cli-client/registry.js +2 -2
- data/exe/aarch64-linux/package/lib/tools/cli-client/session.js +6 -17
- data/exe/aarch64-linux/package/lib/tools/cli-client/skill/SKILL.md +16 -0
- data/exe/aarch64-linux/package/lib/tools/cli-client/skill/references/spec-driven-testing.md +2 -2
- data/exe/aarch64-linux/package/lib/tools/cli-client/skill/references/storage-state.md +2 -2
- data/exe/aarch64-linux/package/lib/tools/cli-client/skill/references/video-recording.md +1 -1
- data/exe/aarch64-linux/package/lib/utilsBundle.js +2825 -1507
- data/exe/aarch64-linux/package/lib/utilsBundle.js.LICENSE +61 -7
- data/exe/aarch64-linux/package/lib/vite/dashboard/assets/{index-DpEq2p62.js → index-C_5TMfeg.js} +1 -1
- data/exe/aarch64-linux/package/lib/vite/dashboard/index.html +1 -1
- data/exe/aarch64-linux/package/lib/vite/htmlReport/report.js +3 -3
- data/exe/aarch64-linux/package/lib/vite/recorder/assets/{codeMirrorModule-BHYmBp6h.js → codeMirrorModule-DeBYQozu.js} +1 -1
- data/exe/aarch64-linux/package/lib/vite/recorder/assets/{index-DA10QRaq.js → index-Bq-mQf8S.js} +91 -91
- data/exe/aarch64-linux/package/lib/vite/recorder/index.html +1 -1
- data/exe/aarch64-linux/package/lib/vite/traceViewer/assets/{codeMirrorModule-Ds_H_9Yq.js → codeMirrorModule-LEHpjmcn.js} +1 -1
- data/exe/aarch64-linux/package/lib/vite/traceViewer/assets/defaultSettingsView-BNmKHKpQ.js +264 -0
- data/exe/aarch64-linux/package/lib/vite/traceViewer/{defaultSettingsView.BDKsFU3c.css → defaultSettingsView.CjdS-WJx.css} +1 -1
- data/exe/aarch64-linux/package/lib/vite/traceViewer/index.DMMX1gXU.js +2 -0
- data/exe/aarch64-linux/package/lib/vite/traceViewer/index.html +3 -3
- data/exe/aarch64-linux/package/lib/vite/traceViewer/sw.bundle.js +2 -2
- data/exe/aarch64-linux/package/lib/vite/traceViewer/uiMode.BZQ54Kgt.css +1 -0
- data/exe/aarch64-linux/package/lib/vite/traceViewer/uiMode.Ut8wwJNp.js +6 -0
- data/exe/aarch64-linux/package/lib/vite/traceViewer/uiMode.html +4 -4
- data/exe/aarch64-linux/package/package.json +1 -1
- data/exe/aarch64-linux/package/protocol.yml +153 -46
- data/exe/aarch64-linux/package/types/protocol.d.ts +95 -31
- data/exe/aarch64-linux/package/types/types.d.ts +478 -551
- data/lib/venetian/browser_installer.rb +20 -1
- data/lib/venetian/executable.rb +28 -11
- data/lib/venetian/railtie.rb +7 -0
- data/lib/venetian/system_test_case_extension.rb +43 -0
- data/lib/venetian/version.rb +2 -2
- data/lib/venetian.rb +4 -3
- metadata +14 -13
- data/exe/aarch64-linux/package/lib/vite/traceViewer/assets/defaultSettingsView-D31xz8zv.js +0 -262
- data/exe/aarch64-linux/package/lib/vite/traceViewer/index.BCnMPevh.js +0 -2
- data/exe/aarch64-linux/package/lib/vite/traceViewer/uiMode.Btcz36p_.css +0 -1
- data/exe/aarch64-linux/package/lib/vite/traceViewer/uiMode.C2Efnu2P.js +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 50cfc5a705f2b283a106e74ca82adbd9507939b1f9ceca3e0450b89d976a4e1d
|
|
4
|
+
data.tar.gz: 0cf918439787fca987ce9238ac7718763ffc46675d40a38de0af7640961fd8a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e89bbab38e2669672584672de881207e9467c81ae41badaf2b7aa310d1da6413c48dc89efae46afcd28889ea7c4ffd4773985e3863343e0c3213eff985fc39ee
|
|
7
|
+
data.tar.gz: b41d91487578d454c0fb9ca211dc74aaa8b603f44e4c8f6099e04da19215d84fa1772ff59c6a2446d4db671adaefacee5cc10804f2c5883213ca574c101720d4
|
data/README.md
CHANGED
|
@@ -14,9 +14,11 @@ bundle add venetian --group test
|
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
16
16
|
|
|
17
|
+
### Rails system tests
|
|
18
|
+
|
|
17
19
|
In your system test case, choose the Playwright driver. Venetian will provide the base command to run Playwright,
|
|
18
20
|
which you can still override by passing `:playwright_cli_executable_path`, and this plus any other options will be passed through
|
|
19
|
-
to `capybara-playwright-driver`.
|
|
21
|
+
to `capybara-playwright-driver`.
|
|
20
22
|
|
|
21
23
|
```ruby
|
|
22
24
|
require "test_helper"
|
|
@@ -26,6 +28,73 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
|
|
|
26
28
|
end
|
|
27
29
|
```
|
|
28
30
|
|
|
31
|
+
### Using Capybara directly
|
|
32
|
+
|
|
33
|
+
Likewise, register the Playwright driver before using it later:
|
|
34
|
+
|
|
35
|
+
```ruby
|
|
36
|
+
Capybara.register_driver :playwright do |app|
|
|
37
|
+
Capybara::Playwright::Driver.new(app)
|
|
38
|
+
end
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Automatic browser and dependency installation
|
|
42
|
+
|
|
43
|
+
The gem will automatically install a browser and dependencies for you before attempting to use it.
|
|
44
|
+
Browsers are installed to `$XDG_CACHE_HOME/ms-playwright` on Linux, `~/Library/Caches/ms-playwright` on macOS,
|
|
45
|
+
and `%LOCALAPPDATA%\ms-playwright` on Windows. In CI, you will want to
|
|
46
|
+
[cache this directory](https://docs.github.com/en/actions/reference/workflows-and-actions/dependency-caching)
|
|
47
|
+
to avoid downloads on every run.
|
|
48
|
+
|
|
49
|
+
On Linux,
|
|
50
|
+
[Playwright currently only officially supports Debian and Ubuntu](https://playwright.dev/docs/intro#system-requirements)
|
|
51
|
+
due to e.g. differences between package managers and package names across distros,
|
|
52
|
+
so dependency installation happens only if a compatible package manager is found.
|
|
53
|
+
Depending on what you're doing, you may not need to install dependencies,
|
|
54
|
+
but if you do and your distro is unsupported, you will need to work out what you need and deal with that first.
|
|
55
|
+
|
|
56
|
+
When parallelizing tests, there's also the issue of multiple processes all trying to acquire the package manager lock:
|
|
57
|
+
if you use Rails system tests with `ActionDispatch::SystemTestCase`,
|
|
58
|
+
this is handled automatically by installing all required browsers before disabling auto-installation and then forking.
|
|
59
|
+
|
|
60
|
+
### Installing browsers manually
|
|
61
|
+
|
|
62
|
+
If you can't rely on automatic installation, you can use the included Rake task to install browsers.
|
|
63
|
+
With Rails this is included automatically when the gem is required.
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
$ RAILS_ENV=test rails venetian:install
|
|
67
|
+
|
|
68
|
+
# Or a specific browser
|
|
69
|
+
$ RAILS_ENV=test rails venetian:install[firefox]
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Otherwise in your Rakefile add:
|
|
73
|
+
|
|
74
|
+
```ruby
|
|
75
|
+
load "tasks/venetian.rake"
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
And then run:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
$ rake venetian:install
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Running Playwright yourself
|
|
85
|
+
|
|
86
|
+
The gem provides a `playwright` executable which you can use to run Playwright yourself.
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
$ playwright --version
|
|
90
|
+
Version 1.61.1
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Getting more output
|
|
94
|
+
|
|
95
|
+
Noisy output during a test run is often frustrating, so the gem is quiet by default.
|
|
96
|
+
You can get more output with `VENETIAN_DEBUG=1`.
|
|
97
|
+
|
|
29
98
|
## Development
|
|
30
99
|
|
|
31
100
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests.
|
data/exe/aarch64-linux/node
CHANGED
|
Binary file
|