@empiricalrun/playwright-utils 0.19.34 → 0.19.36

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.36
4
+
5
+ ### Patch Changes
6
+
7
+ - 005632b: fix: restore z-index after annotations
8
+ - Updated dependencies [005632b]
9
+ - Updated dependencies [4f8e042]
10
+ - @empiricalrun/test-gen@0.42.24
11
+
12
+ ## 0.19.35
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [b11f2cc]
17
+ - Updated dependencies [853384f]
18
+ - @empiricalrun/test-gen@0.42.23
19
+ - @empiricalrun/llm@0.9.33
20
+
3
21
  ## 0.19.34
4
22
 
5
23
  ### Patch Changes
@@ -34,9 +34,15 @@ test_1.test.beforeEach(async ({ page }) => {
34
34
  await page.goto(`http://localhost:${PORT}/survey.html`);
35
35
  // Assert that Survicate and button loads
36
36
  await (0, test_1.expect)(page.getByText("Start survey")).toBeVisible();
37
- await (0, test_1.expect)(page.getByRole("button", { name: "Target" })).toBeVisible();
37
+ const targetButton = page.getByRole("button", { name: "Target" });
38
+ await (0, test_1.expect)(targetButton).toBeVisible();
39
+ // Get initial z-index
40
+ const initialZIndex = await targetButton.evaluate((el) => window.getComputedStyle(el).getPropertyValue("z-index"));
38
41
  // Do the click, which should pass
39
- await page.getByRole("button", { name: "Target" }).click();
42
+ await targetButton.click();
43
+ // Assert z-index hasn't changed
44
+ const finalZIndex = await targetButton.evaluate((el) => window.getComputedStyle(el).getPropertyValue("z-index"));
45
+ (0, test_1.expect)(finalZIndex).toBe(initialZIndex);
40
46
  });
41
47
  (0, test_1.test)("should dismiss two-step overlay for click", async ({ page }) => {
42
48
  await page.goto(`http://localhost:${PORT}/tos.html`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empiricalrun/playwright-utils",
3
- "version": "0.19.34",
3
+ "version": "0.19.36",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -42,9 +42,9 @@
42
42
  "playwright-core": "1.47.1",
43
43
  "puppeteer-extra-plugin-recaptcha": "^3.6.8",
44
44
  "rimraf": "^6.0.1",
45
- "@empiricalrun/llm": "^0.9.32",
46
- "@empiricalrun/r2-uploader": "^0.3.8",
47
- "@empiricalrun/test-gen": "^0.42.22"
45
+ "@empiricalrun/llm": "^0.9.33",
46
+ "@empiricalrun/test-gen": "^0.42.24",
47
+ "@empiricalrun/r2-uploader": "^0.3.8"
48
48
  },
49
49
  "scripts": {
50
50
  "dev": "tsc --build --watch",
@@ -13,9 +13,9 @@ export default defineConfig({
13
13
  // uses this to detect headless and not render in that scenario
14
14
  userAgent:
15
15
  "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36",
16
- actionTimeout: 10_000,
16
+ actionTimeout: 5_000,
17
17
  },
18
18
  expect: {
19
- timeout: 10_000,
19
+ timeout: 5_000,
20
20
  },
21
21
  });