allure-playwright 3.7.1 → 3.8.0
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 +20 -0
- package/dist/cjs/index.js +538 -212
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/model.js.map +1 -1
- package/dist/cjs/playwrightInternals.js +2 -0
- package/dist/cjs/playwrightInternals.js.map +1 -0
- package/dist/cjs/runtime.js +197 -3
- package/dist/cjs/runtime.js.map +1 -1
- package/dist/cjs/syncAnnotations.js +12 -0
- package/dist/cjs/syncAnnotations.js.map +1 -0
- package/dist/cjs/utils.js +14 -8
- package/dist/cjs/utils.js.map +1 -1
- package/dist/esm/index.js +538 -212
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/model.js.map +1 -1
- package/dist/esm/playwrightInternals.js +2 -0
- package/dist/esm/playwrightInternals.js.map +1 -0
- package/dist/esm/runtime.js +197 -3
- package/dist/esm/runtime.js.map +1 -1
- package/dist/esm/syncAnnotations.js +6 -0
- package/dist/esm/syncAnnotations.js.map +1 -0
- package/dist/esm/utils.js +14 -8
- package/dist/esm/utils.js.map +1 -1
- package/dist/types/index.d.ts +16 -2
- package/dist/types/model.d.ts +3 -0
- package/dist/types/playwrightInternals.d.ts +29 -0
- package/dist/types/runtime.d.ts +6 -2
- package/dist/types/syncAnnotations.d.ts +3 -0
- package/dist/types/utils.d.ts +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -143,3 +143,23 @@ describe("signing in with a password", () => {
|
|
|
143
143
|
```
|
|
144
144
|
|
|
145
145
|
More details about the API are available at [https://allurereport.org/docs/playwright-reference/](https://allurereport.org/docs/playwright-reference/).
|
|
146
|
+
|
|
147
|
+
### Sync API
|
|
148
|
+
|
|
149
|
+
When your Playwright test uses synchronous helpers or matcher integrations, you can use the sync facade from `allure-js-commons/sync`.
|
|
150
|
+
|
|
151
|
+
```ts
|
|
152
|
+
import { test, expect } from "@playwright/test";
|
|
153
|
+
import * as allure from "allure-js-commons/sync";
|
|
154
|
+
|
|
155
|
+
test("sign in with a valid password", async () => {
|
|
156
|
+
allure.epic("Signing in");
|
|
157
|
+
allure.parameter("browser", "chromium");
|
|
158
|
+
|
|
159
|
+
allure.step("Assert the signed-in state", () => {
|
|
160
|
+
expect(1).toBe(1);
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
The sync facade is strict-sync only: `allure.step()` must finish synchronously and must not return a `Promise`.
|