Skip to content

Commit

Permalink
Fix last arg getting dropped in WebDriver callNoWait. (#4606)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuchenshi authored Mar 10, 2021
1 parent 335e6d0 commit 555fe23
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class AuthDriver {
}

async callNoWait(fn: string, ...args: unknown[]): Promise<void> {
return this.webDriver.executeScript(`${fn}(${PASSED_ARGS})`, ...args);
return this.webDriver.executeScript(`${fn}(...arguments)`, ...args);
}

async getAuthSnapshot(): Promise<Auth> {
Expand Down

0 comments on commit 555fe23

Please sign in to comment.