@enhance-eng/sdk 0.1.0-dev.sha-d9190c779d58 → 0.1.158

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.
@@ -1,7 +1,8 @@
1
- import "../capture-files.lib-BpwdV8DQ.mjs";
1
+ import "../index-7uzK6oto.mjs";
2
2
  import { Page } from "@playwright/test";
3
3
  //#region src/playwright/capture-page.lib.d.ts
4
4
  interface CaptureStepOptions {
5
+ readonly page?: string;
5
6
  readonly journey: string;
6
7
  readonly step: string;
7
8
  readonly order?: number;
@@ -14,6 +15,11 @@ interface CaptureStepOptions {
14
15
  //#endregion
15
16
  //#region src/playwright/capture-step.lib.d.ts
16
17
  declare const enhance: {
18
+ /**
19
+ * Captures the page as it is now. Capturing the same step twice in one test keeps both; the run
20
+ * numbers the second. A capture that fails its own format check, or cannot be saved on this
21
+ * machine, is left out and named in the run's output, and the test goes on.
22
+ */
17
23
  capture: (page: Page, options: CaptureStepOptions) => Promise<void>;
18
24
  };
19
25
  //#endregion