File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -82,16 +82,16 @@ export abstract class BaseComponent {
8282 byRole ?: Parameters < Page [ 'getByRole' ] > [ 0 ] ;
8383 byLabel ?: Parameters < Page [ 'getByLabel' ] > [ 0 ] ;
8484 byTestId ?: Parameters < Page [ 'getByTestId' ] > [ 0 ] ;
85- byText ?: Parameters < Page [ 'getByText' ] > [ 0 ] ;
85+ text ?: Parameters < Page [ 'getByText' ] > [ 0 ] ;
8686 name ?: string ;
8787 exact ?: boolean ;
8888 }
8989 ) : Promise < void > {
9090 let element = this . getElement ( selector , options ) ;
9191
92- if ( options ?. byText ) {
92+ if ( options ?. text ) {
9393 element = element . filter ( {
94- hasText : options . exact ? options . byText : new RegExp ( options . byText ) ,
94+ hasText : options . exact ? options . text : new RegExp ( options . text ) ,
9595 } ) ;
9696 }
9797
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export class ButtonComponent extends BaseComponent {
1919 }
2020
2121 async clickButtonByText ( text : string ) {
22- await this . click ( text , { byText : text } ) ;
22+ await this . click ( text , { text : text } ) ;
2323 }
2424
2525 async clickButton ( buttonName : string ) {
You can’t perform that action at this time.
0 commit comments