@uxf/e2e-playwright 11.110.1 → 11.111.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/package.json +3 -3
- package/ui/text-input.d.ts +1 -0
- package/ui/text-input.e2e.js +1 -0
- package/ui/text-input.js +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxf/e2e-playwright",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.111.0",
|
|
4
4
|
"description": "UXF Playwright helpers",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@playwright/test": "1.57.0",
|
|
20
20
|
"@uxf/core": "11.110.0",
|
|
21
|
-
"@uxf/ui": "11.
|
|
21
|
+
"@uxf/ui": "11.111.0",
|
|
22
22
|
"dayjs": "^1.11.19"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@playwright/test": "1.57.0",
|
|
26
26
|
"@uxf/core": "11.110.0",
|
|
27
|
-
"@uxf/ui": "11.
|
|
27
|
+
"@uxf/ui": "11.111.0",
|
|
28
28
|
"dayjs": "^1.11.19"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/ui/text-input.d.ts
CHANGED
|
@@ -5,5 +5,6 @@ export type TextInputFinder = FormComponentFinder;
|
|
|
5
5
|
export declare class TextInputModel extends FormComponentModel<string> {
|
|
6
6
|
constructor(page: Page, finder: FormComponentFinder);
|
|
7
7
|
change(value: string): Promise<void>;
|
|
8
|
+
getValue(): Promise<string>;
|
|
8
9
|
}
|
|
9
10
|
export declare const textInput: (page: Page) => (finder: TextInputFinder) => TextInputModel;
|
package/ui/text-input.e2e.js
CHANGED
|
@@ -7,4 +7,5 @@ const components_1 = require("../components");
|
|
|
7
7
|
await page.goto("/examples/ui/text-input/Default");
|
|
8
8
|
await ui.textInput({ $name: "default" }).change("Value");
|
|
9
9
|
await ui.textInput({ $name: "error" }).shouldBeInvalid();
|
|
10
|
+
await ui.textInput({ $name: "withValue" }).getValue();
|
|
10
11
|
});
|
package/ui/text-input.js
CHANGED
|
@@ -10,6 +10,9 @@ class TextInputModel extends form_component_model_1.FormComponentModel {
|
|
|
10
10
|
async change(value) {
|
|
11
11
|
await this.locator.locator("input").fill(value);
|
|
12
12
|
}
|
|
13
|
+
async getValue() {
|
|
14
|
+
return await this.locator.locator("input").inputValue();
|
|
15
|
+
}
|
|
13
16
|
}
|
|
14
17
|
exports.TextInputModel = TextInputModel;
|
|
15
18
|
const textInput = (page) => (finder) => new TextInputModel(page, finder);
|