@tstdl/base 0.84.28 → 0.84.29

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 & ElementHandle, Methods> {
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.28",
3
+ "version": "0.84.29",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"