Skip to content

Commit df645c6

Browse files
committed
update common action property name
1 parent fd9d5bd commit df645c6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

e2e/lib/components/base.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

e2e/lib/components/button/button.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)