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 {
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 } ) {
5957 const variant = accept ? `approve` : `reject`
60- // `.click` doesn't work here, so we use `.focus` and `Space`
6158 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 ( )
6460 }
6561}
You can’t perform that action at this time.
0 commit comments