diff --git a/client/lib/DomExtender.ts b/client/lib/DomExtender.ts index aeadabe7b..29ba66b88 100644 --- a/client/lib/DomExtender.ts +++ b/client/lib/DomExtender.ts @@ -38,7 +38,7 @@ for (const Item of [SuperElement, SuperNode, SuperHTMLElement, Element, Node, HT enumerable: false, configurable: false, writable: false, - value: async (): Promise => { + async value(): Promise { const { awaitedOptions } = getState(this); const coreFrame: CoreFrameEnvironment = await awaitedOptions?.coreFrame; await Interactor.run(coreFrame, [{ click: this }]); @@ -49,10 +49,9 @@ for (const Item of [SuperElement, SuperNode, SuperHTMLElement, Element, Node, HT enumerable: false, configurable: false, writable: false, - value: async (...typeInteractions: ITypeInteraction[]): Promise => { + async value(...typeInteractions: ITypeInteraction[]): Promise { const { awaitedOptions } = getState(this); const coreFrame: CoreFrameEnvironment = await awaitedOptions?.coreFrame; - // @ts-ignore await this.$click(); await Interactor.run( coreFrame, @@ -65,7 +64,7 @@ for (const Item of [SuperElement, SuperNode, SuperHTMLElement, Element, Node, HT enumerable: false, configurable: false, writable: false, - value: async (): Promise => { + async value(): Promise { const { awaitedPath, awaitedOptions } = getState(this); const coreFrame: CoreFrameEnvironment = await awaitedOptions?.coreFrame; await coreFrame.waitForElement(awaitedPath.toJSON(), { waitForVisible: true }); @@ -76,7 +75,7 @@ for (const Item of [SuperElement, SuperNode, SuperHTMLElement, Element, Node, HT enumerable: false, configurable: false, writable: false, - value: async (): Promise => { + async value(): Promise { const { awaitedOptions } = getState(this); const coreFrame: CoreFrameEnvironment = await awaitedOptions?.coreFrame; await coreFrame.getComputedVisibility(this);