From 6088bc4e06ab242b807c47b96f16bc41eb0ecde1 Mon Sep 17 00:00:00 2001 From: Mykola Mokhnach Date: Tue, 27 Aug 2024 17:12:55 +0200 Subject: [PATCH] Fix names --- lib/commands/context.js | 2 +- lib/commands/log.js | 2 +- lib/driver.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/commands/context.js b/lib/commands/context.js index bebd71272..f7f0fda2d 100644 --- a/lib/commands/context.js +++ b/lib/commands/context.js @@ -567,7 +567,7 @@ const commands = { context, } ); - await this.logs.performance.startCapture(); + await this.logs.performance?.startCapture(); } // start safari logging if the logs handlers are active diff --git a/lib/commands/log.js b/lib/commands/log.js index d820dd4fe..eb7923f48 100644 --- a/lib/commands/log.js +++ b/lib/commands/log.js @@ -116,7 +116,7 @@ export default { * @param {BiDiListenerProperties} properties * @returns {[EE, import('./types').LogListener]} */ - assignBiDiListener (logEmitter, properties) { + assignBiDiLogListener (logEmitter, properties) { const { type, context = NATIVE_WIN, diff --git a/lib/driver.js b/lib/driver.js index 05630b100..64c4cbc2f 100644 --- a/lib/driver.js +++ b/lib/driver.js @@ -2016,7 +2016,7 @@ export class XCUITestDriver extends BaseDriver { extractLogs = commands.logExtensions.extractLogs; supportedLogTypes = commands.logExtensions.supportedLogTypes; startLogCapture = commands.logExtensions.startLogCapture; - assignBiDiLogListener = commands.logExtensions.assignBiDiListener; + assignBiDiLogListener = commands.logExtensions.assignBiDiLogListener; mobileStartLogsBroadcast = commands.logExtensions.mobileStartLogsBroadcast; mobileStopLogsBroadcast = commands.logExtensions.mobileStopLogsBroadcast;