@tstdl/base 0.84.28 → 0.84.30
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.
|
@@ -17,7 +17,7 @@ export type ElementControllerOptions = {
|
|
|
17
17
|
};
|
|
18
18
|
type LocatorOptions<K extends keyof Locator, I extends keyof Parameters<Locator[K]>> = NonUndefinable<Parameters<Locator[K]>[I]>;
|
|
19
19
|
type Methods = 'isVisible' | 'isHidden' | 'isEnabled' | 'isDisabled' | 'isChecked' | 'isEditable' | 'fill' | 'type' | 'press' | 'check' | 'uncheck' | 'setChecked' | 'selectOption' | 'setInputFiles' | 'click' | 'hover' | 'focus' | 'tap' | 'selectText' | 'inputValue';
|
|
20
|
-
export declare class ElementController<T extends Locator | ElementHandle = Locator | ElementHandle> implements Pick<Locator
|
|
20
|
+
export declare class ElementController<T extends Locator | ElementHandle = Locator | ElementHandle> implements Pick<Locator, Methods> {
|
|
21
21
|
readonly locatorOrHandle: T;
|
|
22
22
|
readonly options: ElementControllerOptions;
|
|
23
23
|
constructor(locatorOrHandle: T, options?: ElementControllerOptions);
|
|
@@ -150,7 +150,7 @@ class ElementController {
|
|
|
150
150
|
async prepareAction(options) {
|
|
151
151
|
const actionDelay = options?.actionDelay ?? this.options.actionDelay;
|
|
152
152
|
if ((0, import_type_guards.isDefined)(actionDelay)) {
|
|
153
|
-
await this.waitFor();
|
|
153
|
+
await this.waitFor("visible", { timeout: (0, import_value_or_provider.resolveValueOrProvider)(options?.timeout) });
|
|
154
154
|
await delay(actionDelay);
|
|
155
155
|
}
|
|
156
156
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tstdl/base",
|
|
3
|
-
"version": "0.84.
|
|
3
|
+
"version": "0.84.30",
|
|
4
4
|
"author": "Patrick Hein",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"build": "tsc && tsc-alias",
|
|
11
11
|
"build:watch": "concurrently --raw --kill-others npm:tsc:watch npm:tsc-alias:watch",
|
|
12
12
|
"build:production": "rm -rf dist && npm run build && npm run build:production:cjs && npm run build:production:copy-files",
|
|
13
|
-
"build:production:cjs": "esbuild `find dist \\( -name '*.js' -o -name '*.jsx' \\)` --outdir=dist --allow-overwrite --format=cjs",
|
|
13
|
+
"build:production:cjs": "esbuild `find dist \\( -name '*.js' -o -name '*.jsx' \\)` --outdir=dist --allow-overwrite --target=es2022 --format=cjs",
|
|
14
14
|
"build:production:copy-files": "cp package.json .eslintrc.json tsconfig.server.json dist/ && cp tsconfig.base.json dist/tsconfig.json && sed -i 's/\"type\": \"module\",/\"type\": \"commonjs\",/g' dist/package.json",
|
|
15
15
|
"build:docs": "typedoc",
|
|
16
16
|
"build:docs-watch": "typedoc --watch",
|