Skip to content

Commit

Permalink
fix(devtools): calling sendAlertText clears local driver state (#7749)
Browse files Browse the repository at this point in the history
Upon calling accept(text), Puppeteer dismissed the dialog box.
  • Loading branch information
jan-molak committed Nov 24, 2021
1 parent fa3af3a commit 2d53403
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/devtools/src/commands/sendAlertText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ export default async function sendAlertText (
}

await this.activeDialog.accept(text)
delete this.activeDialog

return null
}

0 comments on commit 2d53403

Please sign in to comment.