Skip to content

Commit f2c877d

Browse files
committed
feat: Added support for @playwright/test
BREAKING CHANGE: browserType replaced with browserName
1 parent 412575b commit f2c877d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ import { chromium, Browser, Page, BrowserContext } from "playwright";
2828
#### Explicit config from code
2929

3030
```js
31-
const browserType = chromium; // any BrowserType supported by Playwright
32-
3331
const config: Config = {
3432
// URL where backend is running
3533
// Required
@@ -56,7 +54,8 @@ const config: Config = {
5654
ciBuildId: "SOME_UNIQUE_ID",
5755
};
5856

59-
const vrt = new PlaywrightVisualRegressionTracker(browserType, config);
57+
const browserName = chromium.name();
58+
const vrt = new PlaywrightVisualRegressionTracker(browserName, config);
6059
```
6160

6261
#### Or, as JSON config file `vrt.json`

0 commit comments

Comments
 (0)