@empiricalrun/playwright-utils 0.18.37 → 0.18.39

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,20 @@
1
1
  # @empiricalrun/playwright-utils
2
2
 
3
+ ## 0.18.39
4
+
5
+ ### Patch Changes
6
+
7
+ - d288d1e: docs: add email links example
8
+ - 15cb2a8: fix: add a navigation timeout to cap waitForURL behavior
9
+
10
+ ## 0.18.38
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [b45c035]
15
+ - Updated dependencies [b3069f1]
16
+ - @empiricalrun/test-gen@0.40.1
17
+
3
18
  ## 0.18.37
4
19
 
5
20
  ### 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.37",
3
+ "version": "0.18.39",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -44,7 +44,7 @@
44
44
  "puppeteer-extra-plugin-recaptcha": "^3.6.8",
45
45
  "rimraf": "^6.0.1",
46
46
  "@empiricalrun/r2-uploader": "^0.3.7",
47
- "@empiricalrun/test-gen": "^0.40.0",
47
+ "@empiricalrun/test-gen": "^0.40.1",
48
48
  "@empiricalrun/llm": "^0.9.29"
49
49
  },
50
50
  "scripts": {