@scenetest/playwright 0.1.1 → 0.1.2
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/README.md +19 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# @scenetest/playwright
|
|
2
|
+
|
|
3
|
+
Playwright fixtures for [Scenetest](https://github.com/scenetest/scenetest-js) inline assertions. Provides a `scenePage` fixture that collects assertion results from the browser.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install -D @scenetest/playwright
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
import { test } from '@scenetest/playwright'
|
|
11
|
+
|
|
12
|
+
test('loads without failures', async ({ scenePage }) => {
|
|
13
|
+
await scenePage.goto('/')
|
|
14
|
+
await scenePage.waitForAssertions()
|
|
15
|
+
expect(scenePage.failed).toHaveLength(0)
|
|
16
|
+
})
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
See the [monorepo](https://github.com/scenetest/scenetest-js) for full documentation.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scenetest/playwright",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Playwright fixtures for scenetest inline assertions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@scenetest/checks": "0.1.
|
|
35
|
+
"@scenetest/checks": "0.1.2"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@playwright/test": "^1.40.0"
|