Skip to content

Commit 27ebb76

Browse files
committed
refactor: replaces the focus + space with just a click
1 parent 5eecc0e commit 27ebb76

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
@@ -49,10 +49,8 @@ export class WalletPage {
4949
*/
5050
async handleSessionProposal(opts: SessionParams) {
5151
const variant = opts.accept ? `approve` : `reject`
52-
// `.click` doesn't work here, so we use `.focus` and `Space`
5352
await this.page.getByTestId(`session-${variant}-button`).isEnabled()
54-
await this.page.getByTestId(`session-${variant}-button`).focus()
55-
await this.page.keyboard.press('Space')
53+
await this.page.getByTestId(`session-${variant}-button`).click()
5654
}
5755

5856
async handleRequest({ accept }: { accept: boolean }) {

0 commit comments

Comments
 (0)