Skip to content

Commit 7fbdd37

Browse files
committed
fix: switch playwright to patchright (package + CI + imports)
Made-with: Cursor
1 parent 7d5468e commit 7fbdd37

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
- name: Install Playwright Chromium
5050
working-directory: adapter-hackernews
51-
run: npx playwright install chromium --with-deps
51+
run: npx patchright install chromium --with-deps
5252

5353
- name: Build
5454
working-directory: adapter-hackernews

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"devDependencies": {
1919
"@browserkit/core": "github:browserkit-dev/browserkit#main",
2020
"@types/node": "^22.13.14",
21-
"playwright": "^1.51.1",
21+
"patchright": "^1.51.1",
2222
"tsx": "^4.19.3",
2323
"typescript": "^5.7.3",
2424
"vitest": "^3.0.9",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineAdapter } from "@browserkit/core";
22
import { z } from "zod";
3-
import type { Page } from "playwright";
3+
import type { Page } from "patchright";
44
import { SELECTORS } from "./selectors.js";
55

66
// ─── Types ────────────────────────────────────────────────────────────────────

0 commit comments

Comments
 (0)