@wopee-io/wopee.pw 4.22.1 → 4.23.1
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.
|
@@ -5,7 +5,7 @@ inputs:
|
|
|
5
5
|
nodejs-version:
|
|
6
6
|
description: 'Node.js version.'
|
|
7
7
|
required: false
|
|
8
|
-
default: '
|
|
8
|
+
default: '22'
|
|
9
9
|
npm-token:
|
|
10
10
|
description: 'Token for @autonomous-testing:=https://npm.pkg.github.com.'
|
|
11
11
|
required: true
|
|
@@ -15,7 +15,7 @@ runs:
|
|
|
15
15
|
|
|
16
16
|
steps:
|
|
17
17
|
- name: Setup node
|
|
18
|
-
uses: actions/setup-node@
|
|
18
|
+
uses: actions/setup-node@v6
|
|
19
19
|
with:
|
|
20
20
|
node-version: ${{inputs.nodejs-version}}
|
|
21
21
|
|
|
@@ -18,7 +18,7 @@ jobs:
|
|
|
18
18
|
|
|
19
19
|
steps:
|
|
20
20
|
- name: Check-out
|
|
21
|
-
uses: actions/checkout@
|
|
21
|
+
uses: actions/checkout@v6
|
|
22
22
|
with:
|
|
23
23
|
fetch-depth: 1
|
|
24
24
|
|
|
@@ -34,7 +34,7 @@ jobs:
|
|
|
34
34
|
|
|
35
35
|
steps:
|
|
36
36
|
- name: Check-out
|
|
37
|
-
uses: actions/checkout@
|
|
37
|
+
uses: actions/checkout@v6
|
|
38
38
|
with:
|
|
39
39
|
fetch-depth: 0
|
|
40
40
|
|
|
@@ -68,7 +68,7 @@ jobs:
|
|
|
68
68
|
|
|
69
69
|
steps:
|
|
70
70
|
- name: Check-out
|
|
71
|
-
uses: actions/checkout@
|
|
71
|
+
uses: actions/checkout@v6
|
|
72
72
|
with:
|
|
73
73
|
fetch-depth: 1
|
|
74
74
|
|
|
@@ -87,7 +87,7 @@ jobs:
|
|
|
87
87
|
|
|
88
88
|
steps:
|
|
89
89
|
- name: Check-out
|
|
90
|
-
uses: actions/checkout@
|
|
90
|
+
uses: actions/checkout@v6
|
|
91
91
|
with:
|
|
92
92
|
fetch-depth: 1
|
|
93
93
|
|
|
@@ -105,7 +105,7 @@ jobs:
|
|
|
105
105
|
|
|
106
106
|
steps:
|
|
107
107
|
- name: Check-out
|
|
108
|
-
uses: actions/checkout@
|
|
108
|
+
uses: actions/checkout@v6
|
|
109
109
|
with:
|
|
110
110
|
fetch-depth: 1
|
|
111
111
|
|
|
@@ -138,7 +138,7 @@ jobs:
|
|
|
138
138
|
|
|
139
139
|
steps:
|
|
140
140
|
- name: Check-out
|
|
141
|
-
uses: actions/checkout@
|
|
141
|
+
uses: actions/checkout@v6
|
|
142
142
|
with:
|
|
143
143
|
fetch-depth: 0
|
|
144
144
|
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: Publish to NPM (public)
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
publish:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
id-token: write
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- name: Checkout
|
|
15
|
+
uses: actions/checkout@v6
|
|
16
|
+
|
|
17
|
+
- name: Setup Node.js
|
|
18
|
+
uses: actions/setup-node@v6
|
|
19
|
+
with:
|
|
20
|
+
node-version: '22'
|
|
21
|
+
registry-url: 'https://registry.npmjs.org'
|
|
22
|
+
|
|
23
|
+
- name: Install dependencies
|
|
24
|
+
uses: ./.github/actions/npm_clean_install
|
|
25
|
+
with:
|
|
26
|
+
npm-token: ${{ github.token }}
|
|
27
|
+
|
|
28
|
+
- name: Build
|
|
29
|
+
run: make build
|
|
30
|
+
|
|
31
|
+
- name: Rename to public scope
|
|
32
|
+
env:
|
|
33
|
+
WOPEE_ORG_NAME: '@wopee-io'
|
|
34
|
+
run: |
|
|
35
|
+
node utils/changeOrganizationName.mjs
|
|
36
|
+
node -e "const p=JSON.parse(require('fs').readFileSync('package.json','utf8')); delete p.publishConfig; require('fs').writeFileSync('package.json',JSON.stringify(p,null,2)+'\n')"
|
|
37
|
+
|
|
38
|
+
- name: Publish to NPM
|
|
39
|
+
env:
|
|
40
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
41
|
+
run: npm publish --access public
|
package/README.md
CHANGED
|
@@ -1,15 +1,44 @@
|
|
|
1
|
-
|
|
1
|
+
# Wopee.io Visual Testing for Playwright
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Catch visual regressions in your [Playwright](https://playwright.dev/) tests with AI-powered autonomous test maintenance by [Wopee.io](https://wopee.io).
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
[](https://www.npmjs.com/package/@wopee-io/wopee.pw)
|
|
6
|
+
[](https://www.npmjs.com/package/@wopee-io/wopee.pw)
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
<br/>
|
|
8
|
+
## Installation
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
```bash
|
|
11
|
+
npm install @wopee-io/wopee.pw
|
|
12
|
+
```
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
## Quick Start
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
```typescript
|
|
17
|
+
import { test } from '@playwright/test';
|
|
18
|
+
import { Wopee } from '@wopee-io/wopee.pw';
|
|
19
|
+
|
|
20
|
+
const wopee = new Wopee();
|
|
21
|
+
|
|
22
|
+
test.beforeAll(async () => {
|
|
23
|
+
await wopee.startSuite('My Suite');
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
test('visual check', async ({ page }) => {
|
|
27
|
+
await page.goto('https://example.com');
|
|
28
|
+
await wopee.trackFullPage({ page, stepName: 'Homepage' });
|
|
29
|
+
});
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Features
|
|
33
|
+
|
|
34
|
+
- **Visual regression testing** — pixel-level and AI-powered comparison
|
|
35
|
+
- **Autonomous test maintenance** — AI automatically updates baselines when intended changes are detected
|
|
36
|
+
- **Playwright integration** — works with your existing Playwright test suite
|
|
37
|
+
- **Full page and element screenshots** — flexible capture options
|
|
38
|
+
- **CI/CD ready** — integrates into any pipeline
|
|
39
|
+
|
|
40
|
+
## Links
|
|
41
|
+
|
|
42
|
+
- [Documentation](https://docs.wopee.io/playwright-visual-testing/) — setup guides and API reference
|
|
43
|
+
- [Wopee.io Platform](https://cmd.wopee.io) — manage baselines, review results
|
|
44
|
+
- [Wopee.io Website](https://wopee.io) — learn more about visual testing
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.logVersionMetadata = void 0;
|
|
4
4
|
const child_process_1 = require("child_process");
|
|
5
5
|
const logVersionMetadata = () => {
|
|
6
|
-
let version = "4.
|
|
7
|
-
let hash = "
|
|
6
|
+
let version = "4.23.1"
|
|
7
|
+
let hash = "a6738eeb512dd35e98c310822f57e54b9f44d388"
|
|
8
8
|
if (version === '__LOCAL__') {
|
|
9
9
|
version = process.env.npm_package_version || '__LOCAL__';
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wopee-io/wopee.pw",
|
|
3
|
-
"version": "4.
|
|
4
|
-
"description": "Wopee
|
|
3
|
+
"version": "4.23.1",
|
|
4
|
+
"description": "Playwright visual testing plugin by Wopee.io — catch visual regressions with AI-powered autonomous test maintenance",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"visual testing",
|
|
7
6
|
"playwright",
|
|
8
|
-
"
|
|
7
|
+
"visual testing",
|
|
8
|
+
"visual regression",
|
|
9
|
+
"screenshot testing",
|
|
10
|
+
"ui testing",
|
|
11
|
+
"test automation",
|
|
12
|
+
"wopee",
|
|
13
|
+
"wopee.io",
|
|
14
|
+
"playwright plugin",
|
|
15
|
+
"visual comparison",
|
|
16
|
+
"autonomous testing",
|
|
17
|
+
"ai testing"
|
|
9
18
|
],
|
|
10
19
|
"scripts": {
|
|
11
20
|
"build:win": "rm -rf ./build/ && npx tsc && node utils/addVersionToBuild.mjs"
|
|
@@ -16,7 +25,7 @@
|
|
|
16
25
|
},
|
|
17
26
|
"author": "Ondrej Winter <ondrej.winter@gmail.com>",
|
|
18
27
|
"license": "PROPRIETARY",
|
|
19
|
-
"homepage": "https://wopee.io",
|
|
28
|
+
"homepage": "https://docs.wopee.io/playwright-visual-testing/",
|
|
20
29
|
"publishConfig": {
|
|
21
30
|
"access": "public",
|
|
22
31
|
"registry": "https://registry.npmjs.org",
|