Skip to content

Commit 78f418d

Browse files
committed
Test lens for action commands
1 parent dcb742f commit 78f418d

File tree

1 file changed

+5
-1
lines changed
  • packages/app/src/components/workbench

1 file changed

+5
-1
lines changed

packages/app/src/components/workbench/logs.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export class DevtoolsSource extends Element {
3030
connectedCallback(): void {
3131
super.connectedCallback()
3232
window.addEventListener('show-command', async (ev: CustomEvent) => {
33-
this.closest('wdio-devtools-tabs')?.activateTab('Log')
3433
const command = ev.detail.command
3534
this.elapsedTime = ev.detail.elapsedTime
3635

@@ -49,6 +48,11 @@ export class DevtoolsSource extends Element {
4948
}, {} as Record<string, CommandEndpoint>)
5049
this.#commandDefinition = endpoints[command.command]
5150
this.command = command
51+
console.log('show-command', command, this.#commandDefinition)
52+
window.dispatchEvent(new CustomEvent('app-source-highlight', {
53+
detail: this.command?.callSource
54+
}))
55+
this.closest('wdio-devtools-tabs')?.activateTab('Log')
5256
})
5357
}
5458

0 commit comments

Comments
 (0)