@stablyai/playwright-test 2.0.11 → 2.0.12-rc.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/dist/index.cjs +2212 -2009
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -26
- package/dist/index.d.ts +1 -26
- package/dist/index.mjs +2214 -2010
- package/dist/index.mjs.map +1 -1
- package/dist/reporter.cjs +3605 -3094
- package/dist/reporter.cjs.map +1 -1
- package/dist/reporter.mjs +3616 -3106
- package/dist/reporter.mjs.map +1 -1
- package/package.json +4 -6
package/dist/index.d.mts
CHANGED
|
@@ -8,31 +8,6 @@ export * from '@playwright/test';
|
|
|
8
8
|
import { StablyNotificationConfig } from '@stablyai/playwright-reporter';
|
|
9
9
|
export { NotificationResultPolicy, ProjectNotificationConfig, StablyEmailNotificationConfig, StablyNotificationConfig, StablyReporterOptions, StablySlackNotificationConfig, stablyReporter } from '@stablyai/playwright-reporter';
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
* Get the directory name from an import.meta.url.
|
|
13
|
-
* This is the ESM equivalent of __dirname.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* import { getDirname } from '@stablyai/playwright-test';
|
|
18
|
-
* const __dirname = getDirname(import.meta.url);
|
|
19
|
-
*
|
|
20
|
-
* // Use in tests for file paths
|
|
21
|
-
* await page.setInputFiles('input', path.join(__dirname, 'fixtures', 'file.pdf'));
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
declare function getDirname(importMetaUrl: string): string;
|
|
25
|
-
/**
|
|
26
|
-
* Get the filename from an import.meta.url.
|
|
27
|
-
* This is the ESM equivalent of __filename.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```ts
|
|
31
|
-
* import { getFilename } from '@stablyai/playwright-test';
|
|
32
|
-
* const __filename = getFilename(import.meta.url);
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
declare function getFilename(importMetaUrl: string): string;
|
|
36
11
|
declare const test: typeof test$1;
|
|
37
12
|
declare const expect: _playwright_test.Expect<{
|
|
38
13
|
readonly toMatchScreenshotPrompt: (this: {
|
|
@@ -84,4 +59,4 @@ declare module "@playwright/test" {
|
|
|
84
59
|
}
|
|
85
60
|
}
|
|
86
61
|
|
|
87
|
-
export { type StablyProjectConfig, defineConfig, expect,
|
|
62
|
+
export { type StablyProjectConfig, defineConfig, expect, test };
|
package/dist/index.d.ts
CHANGED
|
@@ -8,31 +8,6 @@ export * from '@playwright/test';
|
|
|
8
8
|
import { StablyNotificationConfig } from '@stablyai/playwright-reporter';
|
|
9
9
|
export { NotificationResultPolicy, ProjectNotificationConfig, StablyEmailNotificationConfig, StablyNotificationConfig, StablyReporterOptions, StablySlackNotificationConfig, stablyReporter } from '@stablyai/playwright-reporter';
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
* Get the directory name from an import.meta.url.
|
|
13
|
-
* This is the ESM equivalent of __dirname.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* import { getDirname } from '@stablyai/playwright-test';
|
|
18
|
-
* const __dirname = getDirname(import.meta.url);
|
|
19
|
-
*
|
|
20
|
-
* // Use in tests for file paths
|
|
21
|
-
* await page.setInputFiles('input', path.join(__dirname, 'fixtures', 'file.pdf'));
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
declare function getDirname(importMetaUrl: string): string;
|
|
25
|
-
/**
|
|
26
|
-
* Get the filename from an import.meta.url.
|
|
27
|
-
* This is the ESM equivalent of __filename.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```ts
|
|
31
|
-
* import { getFilename } from '@stablyai/playwright-test';
|
|
32
|
-
* const __filename = getFilename(import.meta.url);
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
declare function getFilename(importMetaUrl: string): string;
|
|
36
11
|
declare const test: typeof test$1;
|
|
37
12
|
declare const expect: _playwright_test.Expect<{
|
|
38
13
|
readonly toMatchScreenshotPrompt: (this: {
|
|
@@ -84,4 +59,4 @@ declare module "@playwright/test" {
|
|
|
84
59
|
}
|
|
85
60
|
}
|
|
86
61
|
|
|
87
|
-
export { type StablyProjectConfig, defineConfig, expect,
|
|
62
|
+
export { type StablyProjectConfig, defineConfig, expect, test };
|