Skip to content

Commit 3e04bdf

Browse files
committed
fix(tests): Suppress tsc unintentional comparison error
When PAUSE_TIME is set to a value other than 0 the comparison in sendKeyAndWait generates a TS unintentionl comparison error.
1 parent 83b8b1b commit 3e04bdf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/webdriverio/test/test_setup.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,7 @@ export async function sendKeyAndWait(
558558
keys: string | string[],
559559
times = 1,
560560
) {
561+
// @ts-ignore: Unintentional comparison error
561562
if (PAUSE_TIME === 0) {
562563
// Send all keys in one call if no pauses needed.
563564
keys = Array(times).fill(keys).flat();

0 commit comments

Comments
 (0)