@snapvisor/webdriverio 0.7.19

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.
Files changed (3) hide show
  1. package/LICENSE +8 -0
  2. package/README.md +55 -0
  3. package/package.json +69 -0
package/LICENSE ADDED
@@ -0,0 +1,8 @@
1
+ Copyright 2026 Devino Solutions Inc. (Snapvisor modifications)
2
+ Copyright 2022 Smooth Code
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5
+
6
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,55 @@
1
+ <p align="center">
2
+ <a href="https://argos-ci.com/?utm_source=github&utm_medium=logo" target="_blank">
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/argos-ci/argos/main/resources/logos/github-readme-logo-dark.png">
5
+ <img alt="Argos" src="https://raw.githubusercontent.com/argos-ci/argos/main/resources/logos/github-readme-logo-light.png" width="360" height="70">
6
+ </picture>
7
+ </a>
8
+ </p>
9
+
10
+ <p align="center"><strong>The open source visual testing platform for AI-native engineering teams.</strong></p>
11
+
12
+ # Official Argos WebdriverIO integration
13
+
14
+ [![npm version](https://img.shields.io/npm/v/@snapvisor/webdriverio.svg)](https://www.npmjs.com/package/@snapvisor/webdriverio)
15
+ [![npm dm](https://img.shields.io/npm/dm/@snapvisor/webdriverio.svg)](https://www.npmjs.com/package/@snapvisor/webdriverio)
16
+ [![npm dt](https://img.shields.io/npm/dt/@snapvisor/webdriverio.svg)](https://www.npmjs.com/package/@snapvisor/webdriverio)
17
+
18
+ Capture stable Argos screenshots from your [WebdriverIO](https://webdriver.io) tests.
19
+
20
+ Visit the [WebdriverIO SDK documentation](https://argos-ci.com/docs/reference/webdriverio) for guides, the API reference, and more.
21
+
22
+ ## Installation
23
+
24
+ Install the SDK alongside the [Argos CLI](https://argos-ci.com/docs/reference/argos-command-line-interface-cli), which uploads the screenshots to Argos:
25
+
26
+ ```sh
27
+ npm install --save-dev @snapvisor/webdriverio @snapvisor/cli
28
+ ```
29
+
30
+ ## Usage
31
+
32
+ Use `argosScreenshot` to stabilize the UI and capture a screenshot:
33
+
34
+ ```ts
35
+ import { argosScreenshot } from "@snapvisor/webdriverio";
36
+
37
+ describe("Homepage", () => {
38
+ it("takes a screenshot", async () => {
39
+ await browser.url("http://localhost:3000");
40
+ await argosScreenshot(browser, "homepage");
41
+ });
42
+ });
43
+ ```
44
+
45
+ Screenshots are saved locally (in `./screenshots/argos` by default). Upload them to Argos with the Argos CLI, usually at the end of your CI job:
46
+
47
+ ```sh
48
+ npx @snapvisor/cli upload ./screenshots
49
+ ```
50
+
51
+ ## Links
52
+
53
+ - [Official SDK Docs](https://argos-ci.com/docs/reference/webdriverio)
54
+ - [Quickstart](https://argos-ci.com/docs/quickstart/webdriverio-quickstart)
55
+ - [Discord](https://argos-ci.com/discord)
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "@snapvisor/webdriverio",
3
+ "description": "WebdriverIO SDK for visual testing with Argos.",
4
+ "version": "0.7.19",
5
+ "author": "Smooth Code",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/argos-ci/argos-javascript.git",
10
+ "directory": "packages/webdriverio"
11
+ },
12
+ "homepage": "https://argos-ci.com/docs/reference/webdriverio",
13
+ "bugs": {
14
+ "url": "https://github.com/argos-ci/argos-javascript/issues"
15
+ },
16
+ "keywords": [
17
+ "webdriverio",
18
+ "webdriverio-plugin",
19
+ "argos",
20
+ "testing",
21
+ "visual testing",
22
+ "regression",
23
+ "visual regression"
24
+ ],
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "type": "module",
29
+ "types": "./dist/index.d.mts",
30
+ "exports": {
31
+ ".": {
32
+ "types": "./dist/index.d.mts",
33
+ "import": "./dist/index.mjs",
34
+ "require": "./dist/index.cjs",
35
+ "default": "./dist/index.cjs"
36
+ },
37
+ "./package.json": "./package.json"
38
+ },
39
+ "engines": {
40
+ "node": ">=22.0.0"
41
+ },
42
+ "peerDependencies": {
43
+ "webdriverio": "^6 || ^7 || ^8 || ^9"
44
+ },
45
+ "dependencies": {
46
+ "sharp": "^0.35.2"
47
+ },
48
+ "devDependencies": {
49
+ "@snapvisor/cli": "6.4.1",
50
+ "@wdio/cli": "^9.29.0",
51
+ "@wdio/globals": "^9.29.0",
52
+ "@wdio/local-runner": "^9.29.0",
53
+ "@wdio/mocha-framework": "^9.29.0",
54
+ "@wdio/spec-reporter": "^9.29.0",
55
+ "@wdio/types": "^9.29.0",
56
+ "tsx": "^4.22.4",
57
+ "webdriverio": "^9.29.0"
58
+ },
59
+ "scripts": {
60
+ "build": "tsdown && cp ./src/index.cjs ./dist",
61
+ "test-e2e": "wdio run ./wdio.conf.ts",
62
+ "argos-upload": "pnpm exec argos upload screenshots --build-name \"argos-webdriverio-e2e-node-$NODE_VERSION-$OS\"",
63
+ "e2e": "pnpm run test-e2e && pnpm run argos-upload",
64
+ "check-types": "tsc",
65
+ "check-format": "prettier --check --ignore-unknown --ignore-path=../../.gitignore --ignore-path=../../.prettierignore .",
66
+ "lint": "eslint ."
67
+ },
68
+ "gitHead": "345976da3198487edbaacc29641a3c0d8a233299"
69
+ }