Skip to content

Commit 66ba47c

Browse files
committed
refactor: same for request handling
1 parent 27ebb76 commit 66ba47c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/shared/pages/WalletPage.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ export class WalletPage {
5555

5656
async handleRequest({ accept }: { accept: boolean }) {
5757
const variant = accept ? `approve` : `reject`
58-
// `.click` doesn't work here, so we use `.focus` and `Space`
5958
await this.page.getByTestId(`session-${variant}-button`).isEnabled()
60-
await this.page.getByTestId(`session-${variant}-button`).focus()
61-
await this.page.keyboard.press('Space')
59+
await this.page.getByTestId(`session-${variant}-button`).click()
6260
}
6361
}

0 commit comments

Comments
 (0)