@allwright.dev/vitest 0.1.11 → 0.1.13
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.js +9 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -53,6 +53,12 @@ function createLazyLocator(pageResource, selectorFactory) {
|
|
|
53
53
|
get selector() {
|
|
54
54
|
throw new Error("lazy locator selector is not available before the page fixture is initialized");
|
|
55
55
|
},
|
|
56
|
+
async frame(options) {
|
|
57
|
+
return (await pageResource.get()).locator(await selectorFactory()).frame(options);
|
|
58
|
+
},
|
|
59
|
+
async Frame(options) {
|
|
60
|
+
return (await pageResource.get()).locator(await selectorFactory()).Frame(options);
|
|
61
|
+
},
|
|
56
62
|
async click(options) {
|
|
57
63
|
return (await pageResource.get()).locator(await selectorFactory()).click(options);
|
|
58
64
|
},
|
|
@@ -136,6 +142,9 @@ function createLazyPage(pageResource) {
|
|
|
136
142
|
const result = createLazyLocator(pageResource, async () => selector);
|
|
137
143
|
return options ? result.filter(options) : result;
|
|
138
144
|
},
|
|
145
|
+
async frame(selector, options) {
|
|
146
|
+
return (await pageResource.get()).frame(selector, options);
|
|
147
|
+
},
|
|
139
148
|
async goto(url, options) {
|
|
140
149
|
return (await pageResource.get()).goto(url, options);
|
|
141
150
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allwright.dev/vitest",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "Vitest fixtures for the allwright TypeScript client.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"prepublishOnly": "bun run build"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@allwright.dev/core": "0.1.
|
|
50
|
+
"@allwright.dev/core": "0.1.13"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"typescript": "^5.9.2",
|