@empiricalrun/playwright-utils 0.18.38 → 0.19.0

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,23 @@
1
1
  # @empiricalrun/playwright-utils
2
2
 
3
+ ## 0.19.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 02c37c0: feat: upgrade pw version
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [02c37c0]
12
+ - @empiricalrun/test-gen@0.41.0
13
+
14
+ ## 0.18.39
15
+
16
+ ### Patch Changes
17
+
18
+ - d288d1e: docs: add email links example
19
+ - 15cb2a8: fix: add a navigation timeout to cap waitForURL behavior
20
+
3
21
  ## 0.18.38
4
22
 
5
23
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAa7D,wBAAgB,gBAAgB,IAAI,MAAM,CAazC;AAED,eAAO,MAAM,UAAU,EAAE,oBAwBxB,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAa7D,wBAAgB,gBAAgB,IAAI,MAAM,CAazC;AAED,eAAO,MAAM,UAAU,EAAE,oBAyBxB,CAAC"}
package/dist/config.js CHANGED
@@ -50,6 +50,7 @@ exports.baseConfig = {
50
50
  size: { width: 1280, height: 720 },
51
51
  },
52
52
  actionTimeout: 15000,
53
+ navigationTimeout: 30000,
53
54
  },
54
55
  expect: {
55
56
  timeout: 15000,
package/docs/email.md CHANGED
@@ -9,6 +9,7 @@ be used for the test (e.g. invite a new user).
9
9
 
10
10
  ```ts
11
11
  import { EmailClient } from "@empiricalrun/playwright-utils";
12
+ import { expect } from "@playwright/test";
12
13
 
13
14
  const client = new EmailClient();
14
15
  const address = client.getAddress();
@@ -18,6 +19,9 @@ const address = client.getAddress();
18
19
 
19
20
  // Get email received on the `address`
20
21
  const email = await client.waitForEmail();
22
+ expect(
23
+ email.links.find((l) => l.text === "Join your team")
24
+ ).toBeTruthy();
21
25
  ```
22
26
 
23
27
  #### Static email
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empiricalrun/playwright-utils",
3
- "version": "0.18.38",
3
+ "version": "0.19.0",
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.49.1",
26
26
  "@types/async-retry": "^1.4.8",
27
27
  "@types/babel__code-frame": "^7.0.6",
28
28
  "@types/console-log-level": "^1.4.5",
@@ -39,13 +39,12 @@
39
39
  "mailosaur": "^8.6.1",
40
40
  "md5": "^2.3.0",
41
41
  "mime": "3.0.0",
42
- "playwright-core": "1.47.1",
43
- "playwright-extra": "^4.3.6",
42
+ "playwright-core": "1.49.1",
44
43
  "puppeteer-extra-plugin-recaptcha": "^3.6.8",
45
44
  "rimraf": "^6.0.1",
46
- "@empiricalrun/llm": "^0.9.29",
47
45
  "@empiricalrun/r2-uploader": "^0.3.7",
48
- "@empiricalrun/test-gen": "^0.40.1"
46
+ "@empiricalrun/llm": "^0.9.29",
47
+ "@empiricalrun/test-gen": "^0.41.0"
49
48
  },
50
49
  "scripts": {
51
50
  "dev": "tsc --build --watch",