Fix type errors due to changes

This commit is contained in:
Adam Gastineau 2024-12-17 10:40:49 -08:00
parent 8969b2451d
commit ff0799e297
2 changed files with 3 additions and 2 deletions

View file

@ -908,7 +908,7 @@ export class Frame extends SdkObject {
result.dispose(); result.dispose();
return null; 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(); result.dispose();
if (!element) { if (!element) {
return null; return null;

View file

@ -162,7 +162,8 @@ export class TeleSuiteUpdater {
processTestReportEvent(message: any) { processTestReportEvent(message: any) {
// The order of receiver dispatches matters here, we want to assign `lastRunTestCount` // The order of receiver dispatches matters here, we want to assign `lastRunTestCount`
// before we use it. // 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(() => { }); this._receiver.dispatch(message)?.catch(() => { });
} }