@@ -26,7 +26,7 @@ export function setupForDevtools(opts: Options.WebdriverIO) {
2626 const service = new DevToolsHookService ( )
2727 service . captureType = TraceType . Standalone
2828
29- // THE FIX: In v9, the `opts` object itself contains the capabilities.
29+ // In v9, the `opts` object itself contains the capabilities.
3030 // The `beforeSession` hook expects the config and the capabilities.
3131 service . beforeSession ( opts , opts as Capabilities . W3CCapabilities )
3232
@@ -106,7 +106,7 @@ export default class DevToolsHookService implements Services.ServiceInstance {
106106 this . #sessionCapturer = new SessionCapturer ( wdioCaps [ 'wdio:devtoolsOptions' ] )
107107 }
108108
109- // THE FIX: The method signature is corrected to use W3CCapabilities
109+ // The method signature is corrected to use W3CCapabilities
110110 beforeSession ( config : Options . Testrunner , capabilities : Capabilities . W3CCapabilities ) {
111111 const isMultiRemote = ! ( 'browserName' in capabilities ) && ! ( 'platformName' in capabilities )
112112 if ( isMultiRemote ) {
@@ -181,7 +181,7 @@ export default class DevToolsHookService implements Services.ServiceInstance {
181181 }
182182
183183 afterCommand ( command : keyof WebDriverCommands , args : any [ ] , result : any , error ?: Error ) {
184- /* THE FIX: Ensure that the command is captured only if it matches the last command in the stack.
184+ /* Ensure that the command is captured only if it matches the last command in the stack.
185185 * This prevents capturing commands that are not top-level user commands.
186186 */
187187 if ( this . #commandStack[ this . #commandStack. length - 1 ] === command ) {
0 commit comments