File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -49,17 +49,13 @@ export class WalletPage {
49
49
*/
50
50
async handleSessionProposal ( opts : SessionParams ) {
51
51
const variant = opts . accept ? `approve` : `reject`
52
- // `.click` doesn't work here, so we use `.focus` and `Space`
53
52
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 ( )
56
54
}
57
55
58
56
async handleRequest ( { accept } : { accept : boolean } ) {
59
57
const variant = accept ? `approve` : `reject`
60
- // `.click` doesn't work here, so we use `.focus` and `Space`
61
58
await this . page . getByTestId ( `session-${ variant } -button` ) . isEnabled ( )
62
- await this . page . getByTestId ( `session-${ variant } -button` ) . focus ( )
63
- await this . page . keyboard . press ( 'Space' )
59
+ await this . page . getByTestId ( `session-${ variant } -button` ) . click ( )
64
60
}
65
61
}
You can’t perform that action at this time.
0 commit comments