@empiricalrun/playwright-utils 0.27.0 → 0.27.2

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 CHANGED
@@ -1,5 +1,32 @@
1
1
  # @empiricalrun/playwright-utils
2
2
 
3
+ ## 0.27.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [45dfd06]
8
+ - Updated dependencies [7c66a47]
9
+ - Updated dependencies [5bc45e1]
10
+ - Updated dependencies [d0569de]
11
+ - Updated dependencies [fd719f1]
12
+ - Updated dependencies [a65a4d2]
13
+ - @empiricalrun/test-gen@0.66.2
14
+
15
+ ## 0.27.1
16
+
17
+ ### Patch Changes
18
+
19
+ - 1a6bb19: chore: upgrade playwright in devDependencies
20
+ - 4062787: feat: update page.pause codegen to work with playwright 1.53
21
+ - Updated dependencies [1a6bb19]
22
+ - Updated dependencies [d3639c0]
23
+ - Updated dependencies [881e856]
24
+ - Updated dependencies [cfb157a]
25
+ - Updated dependencies [a533ee5]
26
+ - Updated dependencies [4062787]
27
+ - @empiricalrun/test-gen@0.66.1
28
+ - @empiricalrun/llm@0.18.2
29
+
3
30
  ## 0.27.0
4
31
 
5
32
  ### Minor Changes
@@ -1 +1 @@
1
- {"version":3,"file":"uploader.d.ts","sourceRoot":"","sources":["../../src/reporter/uploader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAmB,MAAM,2BAA2B,CAAC;AAIrE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAKpC,wBAAsB,WAAW,CAAC,EAChC,QAAQ,EACR,YAAY,EACZ,YAAY,GACb,EAAE;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAwB1B;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ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,EAAE,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAiCZ"}
@@ -62,6 +62,11 @@ function createUploadTask({ fileList, outputFolder, relativePath = "", }) {
62
62
  */
63
63
  function createUploadTaskV2({ sourceDir, fileList, destinationDir, uploadBucket, }) {
64
64
  return async () => {
65
+ if (!process.env.R2_ACCOUNT_ID ||
66
+ !process.env.R2_ACCESS_KEY_ID ||
67
+ !process.env.R2_SECRET_ACCESS_KEY) {
68
+ return;
69
+ }
65
70
  try {
66
71
  const uploadedFiles = await (0, r2_uploader_1.uploadDirectory)({
67
72
  sourceDir,
@@ -1 +1 @@
1
- {"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../../../../src/test/scripts/pw-locator-patch/dismiss-overlays/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGzC,wBAAsB,OAAO,CAC3B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,cAAc,GAAG,SAAS,EACnC,IAAI,EAAE,MAAM,GAAG,SAAS,mBAyCzB"}
1
+ {"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../../../../src/test/scripts/pw-locator-patch/dismiss-overlays/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGzC,wBAAsB,OAAO,CAC3B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,cAAc,GAAG,SAAS,EACnC,IAAI,EAAE,MAAM,GAAG,SAAS,mBAsCzB"}
@@ -16,10 +16,6 @@ ${text}
16
16
  // TODO: Remove this special handling with app knowledge
17
17
  promptAddition = promptForPFScenario(text);
18
18
  }
19
- else if (await isLeapChadsScenario(page)) {
20
- // TODO: Remove this special handling with app knowledge
21
- promptAddition = promptForLeapChadsScenario();
22
- }
23
19
  let task = `
24
20
  # General instructions for your task
25
21
 
@@ -60,18 +56,3 @@ The only way to work around this is to Click on some other sidebar link element.
60
56
  Don't reattempt the click on Target element, your job is done after the first click.
61
57
  `;
62
58
  }
63
- async function isLeapChadsScenario(page) {
64
- const button = page.getByRole("button", { name: "Join the Chads" });
65
- const isVisible = await button.isVisible();
66
- return isVisible;
67
- }
68
- function promptForLeapChadsScenario() {
69
- return `We are attempting to do a click action on an element on this screen, but that action is obstructed
70
- by a popup element. To dismiss this popup, we need your help to
71
-
72
- 1. Click on the "Join the Chads" button, which will dismiss the popup.
73
- 2. Click on "Home" in the bottom navigation bar.
74
-
75
- Do these actions, and nothing else.
76
- `;
77
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empiricalrun/playwright-utils",
3
- "version": "0.27.0",
3
+ "version": "0.27.2",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "author": "Empirical Team <hey@empirical.run>",
24
24
  "devDependencies": {
25
- "@playwright/test": "1.47.1",
25
+ "@playwright/test": "1.53.0",
26
26
  "@types/async-retry": "^1.4.8",
27
27
  "@types/authenticator": "^1.1.4",
28
28
  "@types/babel__code-frame": "^7.0.6",
@@ -30,9 +30,9 @@
30
30
  "@types/node": "^20.14.9",
31
31
  "@types/serve-handler": "^6.1.4",
32
32
  "@types/adm-zip": "^0.5.7",
33
- "playwright-core": "1.47.1",
33
+ "playwright-core": "1.53.0",
34
34
  "serve-handler": "^6.1.6",
35
- "@empiricalrun/shared-types": "0.5.1"
35
+ "@empiricalrun/shared-types": "0.5.2"
36
36
  },
37
37
  "dependencies": {
38
38
  "@babel/code-frame": "^7.24.7",
@@ -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.18.1",
46
+ "@empiricalrun/llm": "^0.18.2",
47
47
  "@empiricalrun/r2-uploader": "^0.3.9",
48
- "@empiricalrun/test-gen": "^0.66.0"
48
+ "@empiricalrun/test-gen": "^0.66.2"
49
49
  },
50
50
  "scripts": {
51
51
  "dev": "tsc --build --watch",