@empiricalrun/playwright-utils 0.30.0 → 0.30.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.
- package/CHANGELOG.md +10 -0
- package/dist/reporter/util.d.ts +1 -1
- package/dist/reporter/util.d.ts.map +1 -1
- package/dist/reporter/util.js +1 -1
- package/docs/video-labels.md +4 -10
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @empiricalrun/playwright-utils
|
|
2
2
|
|
|
3
|
+
## 0.30.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [29eaffb]
|
|
8
|
+
- Updated dependencies [897486a]
|
|
9
|
+
- Updated dependencies [758c41a]
|
|
10
|
+
- @empiricalrun/test-gen@0.78.1
|
|
11
|
+
- @empiricalrun/llm@0.25.0
|
|
12
|
+
|
|
3
13
|
## 0.30.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
package/dist/reporter/util.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GenericPlaywrightAttachment, TestCaseRunEndEventV2 } from "@empiricalrun/shared-types";
|
|
1
|
+
import { GenericPlaywrightAttachment, TestCaseRunEndEventV2 } from "@empiricalrun/shared-types/playwright-utils";
|
|
2
2
|
import { JSONReportSpec, JSONReport as PlaywrightJSONReport, TestCase } from "@playwright/test/reporter";
|
|
3
3
|
export declare function getPackageJsonPath(folderPath: string): string;
|
|
4
4
|
export declare function resolveReporterOutputPath(defaultValue: string, configDir: string, configValue: string | undefined): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/reporter/util.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/reporter/util.ts"],"names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MAAM,EACN;IAAE,WAAW,EAAE,2BAA2B,EAAE,CAAA;CAAE,EAAE,CACjD,QA+BF;AAGD,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,oBAAoB,EACjC,MAAM,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,QAavC;AAED;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAC/C,mBAAmB,EAAE,MAAM,EAC3B,QAAQ,EAAE,MAAM,EAChB,cAAc,GAAE,OAAe,GAC9B,GAAG,CAAC,MAAM,EAAE;IAAE,WAAW,EAAE,2BAA2B,EAAE,CAAA;CAAE,EAAE,CAAC,CA4C/D;AAED;;;;GAIG;AACH,wBAAsB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAO7E;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,gCAAgC,CACpD,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,6CAoClB"}
|
package/dist/reporter/util.js
CHANGED
|
@@ -126,7 +126,7 @@ async function sendTestCaseUpdateToDashboard(params) {
|
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
128
|
if (!process.env.EMPIRICALRUN_API_KEY) {
|
|
129
|
-
console.
|
|
129
|
+
console.log("No API token found. Skipping send message to dashboard.");
|
|
130
130
|
return;
|
|
131
131
|
}
|
|
132
132
|
await (0, async_retry_1.default)(async () => {
|
package/docs/video-labels.md
CHANGED
|
@@ -10,7 +10,7 @@ To solve this, you should set video labels for pages. This will enable you to id
|
|
|
10
10
|
## Usage
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import { setVideoLabel } from 'playwright-utils/test';
|
|
13
|
+
import { setVideoLabel } from '@empiricalrun/playwright-utils/test';
|
|
14
14
|
|
|
15
15
|
test('my test', async ({ page }) => {
|
|
16
16
|
setVideoLabel(page, 'checkout-flow');
|
|
@@ -30,13 +30,7 @@ test('multi-user scenario', async ({ page, customContextPageProvider }) => {
|
|
|
30
30
|
});
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
##
|
|
33
|
+
## Notes
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
-
|
|
37
|
-
- `customContextPageProvider`: `video-0.webm`, `video-1.webm`, etc.
|
|
38
|
-
|
|
39
|
-
## Note
|
|
40
|
-
|
|
41
|
-
If setVideoLabel is called twice for the same page:
|
|
42
|
-
- The last label will be set
|
|
35
|
+
- The default behavior is to label videos for multiple pages as: `video-0.webm`, `video-1.webm`, etc.
|
|
36
|
+
- If setVideoLabel is called twice for the same page, the last label will be set
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empiricalrun/playwright-utils",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"mailosaur": "^8.6.1",
|
|
44
44
|
"puppeteer-extra-plugin-recaptcha": "^3.6.8",
|
|
45
45
|
"rimraf": "^6.0.1",
|
|
46
|
-
"@empiricalrun/llm": "^0.
|
|
46
|
+
"@empiricalrun/llm": "^0.25.0",
|
|
47
47
|
"@empiricalrun/r2-uploader": "^0.4.0",
|
|
48
|
-
"@empiricalrun/test-gen": "^0.78.
|
|
48
|
+
"@empiricalrun/test-gen": "^0.78.1"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"dev": "tsc --build --watch",
|