Fix type errors due to changes
This commit is contained in:
parent
8969b2451d
commit
ff0799e297
|
|
@ -908,7 +908,7 @@ export class Frame extends SdkObject {
|
|||
result.dispose();
|
||||
return null;
|
||||
}
|
||||
const element = state === 'attached' || state === 'visible' ? await result.evaluateHandle(r => r.element) : null;
|
||||
const element = state === 'attached' || state === 'visible' ? await result.evaluateHandle(r => r.element as Element) : null;
|
||||
result.dispose();
|
||||
if (!element) {
|
||||
return null;
|
||||
|
|
|
|||
|
|
@ -162,7 +162,8 @@ export class TeleSuiteUpdater {
|
|||
processTestReportEvent(message: any) {
|
||||
// The order of receiver dispatches matters here, we want to assign `lastRunTestCount`
|
||||
// before we use it.
|
||||
this._lastRunReceiver?.dispatch(message).catch(() => { });
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
this._lastRunReceiver?.dispatch(message)?.catch(() => { });
|
||||
this._receiver.dispatch(message)?.catch(() => { });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue