Skip to content

Commit b5b221b

Browse files
committed
debug
1 parent 676a709 commit b5b221b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

e2e/assertions/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ try {
100100
const outputView = await bottomBar.openOutputView()
101101
await outputView.selectChannel('WebdriverIO')
102102
const logs = await outputView.getText()
103+
console.log(logs)
103104

104105
const regexp = typeof expectedLog === 'string' ? new RegExp(expectedLog) : expectedLog
105106

@@ -120,15 +121,15 @@ async function clickGlobalAction(bottomBar: BottomBarPanel, label: string) {
120121
await bottomBar.toggle(true)
121122
let action
122123
try {
123-
action = await bottomBar.elem
124+
action = (await bottomBar.elem
124125
.$(bottomBar.locators.globalActions)
125-
.$(`.//a[contains(@aria-label, '${label}') and @role='checkbox']`)
126+
.$(`.//a[contains(@aria-label, '${label}') and @role='checkbox']`)) as WebdriverIO.Element
126127
} catch {
127128
// the panel is already maximized
128129
}
129130
try {
130131
if (action) {
131-
await action.click()
132+
await action.click({})
132133
}
133134
} catch {
134135
// pass

0 commit comments

Comments
 (0)