pomwright 1.1.0 → 1.2.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/CHANGELOG.md +589 -0
- package/README.md +228 -43
- package/dist/index.d.mts +524 -128
- package/dist/index.d.ts +524 -128
- package/dist/index.js +478 -277
- package/dist/index.mjs +467 -266
- package/index.ts +10 -4
- package/package.json +22 -9
package/index.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
BasePage,
|
|
3
|
+
type BasePageOptions,
|
|
4
|
+
type ExtractBaseUrlType,
|
|
5
|
+
type ExtractFullUrlType,
|
|
6
|
+
type ExtractUrlPathType,
|
|
7
|
+
} from "./src/basePage";
|
|
8
|
+
export { BasePage, type BasePageOptions, type ExtractBaseUrlType, type ExtractFullUrlType, type ExtractUrlPathType };
|
|
3
9
|
|
|
4
10
|
import { test } from "./src/fixture/base.fixtures";
|
|
5
11
|
export { test };
|
|
@@ -10,8 +16,8 @@ export { PlaywrightReportLogger };
|
|
|
10
16
|
import { type AriaRoleType, GetByMethod, type LocatorSchema } from "./src/helpers/locatorSchema.interface";
|
|
11
17
|
export { GetByMethod, type LocatorSchema, type AriaRoleType };
|
|
12
18
|
|
|
13
|
-
import { GetLocatorBase } from "./src/helpers/getLocatorBase";
|
|
14
|
-
export { GetLocatorBase };
|
|
19
|
+
import { GetLocatorBase, type LocatorSchemaWithoutPath } from "./src/helpers/getLocatorBase";
|
|
20
|
+
export { GetLocatorBase, type LocatorSchemaWithoutPath };
|
|
15
21
|
|
|
16
22
|
import { BaseApi } from "./src/api/baseApi";
|
|
17
23
|
export { BaseApi };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pomwright",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "POMWright is a complementary test framework for Playwright written in TypeScript.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,16 +21,30 @@
|
|
|
21
21
|
"Playwright",
|
|
22
22
|
"POM",
|
|
23
23
|
"Page Object Model",
|
|
24
|
-
"
|
|
24
|
+
"Locator",
|
|
25
|
+
"Chaining",
|
|
26
|
+
"Nesting",
|
|
27
|
+
"LocatorSchema",
|
|
28
|
+
"SessionStorage",
|
|
29
|
+
"Test",
|
|
30
|
+
"Test Framework",
|
|
31
|
+
"E2E",
|
|
32
|
+
"End-to-End Testing",
|
|
33
|
+
"Automation",
|
|
34
|
+
"Browser Automation",
|
|
35
|
+
"Web Testing",
|
|
36
|
+
"Logging",
|
|
37
|
+
"Log Levels",
|
|
38
|
+
"TypeScript"
|
|
25
39
|
],
|
|
26
40
|
"devDependencies": {
|
|
27
|
-
"@biomejs/biome": "^1.
|
|
41
|
+
"@biomejs/biome": "^1.9.2",
|
|
28
42
|
"@changesets/changelog-github": "^0.5.0",
|
|
29
|
-
"@changesets/cli": "^2.27.
|
|
30
|
-
"@types/node": "^20.
|
|
31
|
-
"tsup": "^8.0
|
|
32
|
-
"typescript": "^5.
|
|
33
|
-
"vitest": "^1.
|
|
43
|
+
"@changesets/cli": "^2.27.8",
|
|
44
|
+
"@types/node": "^20.16.6",
|
|
45
|
+
"tsup": "^8.3.0",
|
|
46
|
+
"typescript": "^5.6.2",
|
|
47
|
+
"vitest": "^2.1.1"
|
|
34
48
|
},
|
|
35
49
|
"peerDependencies": {
|
|
36
50
|
"@playwright/test": ">=1.41.0 <1.42.0 || >=1.43.0 <2.0.0"
|
|
@@ -40,7 +54,6 @@
|
|
|
40
54
|
"release": "pnpm run build && changeset publish",
|
|
41
55
|
"lint": "biome check ./src",
|
|
42
56
|
"format": "biome format ./src --write",
|
|
43
|
-
"install-browsers": "playwright install --with-deps",
|
|
44
57
|
"pack-test": "bash pack-test.sh",
|
|
45
58
|
"test": "vitest run && bash pack-test.sh"
|
|
46
59
|
}
|