Skip to content

Commit

Permalink
cherry pick 6c5be66
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowee committed Jun 26, 2024
1 parent 376186f commit af6b9bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playwright/pages/dialogs/productCreateDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export class ProductCreateDialog extends BasePage{
}
async selectProductTypeWithVariants(productType: string = "Beer") {
await this.waitForNetworkIdle(() => this.dialogProductTypeInput.fill(productType));
await this.promptedOptions.filter({hasText:productType}).click();
await this.promptedOptions.filter({ hasText: productType }).waitFor({ state: "attached" });
await this.promptedOptions.filter({ hasText: productType }).click();
}
async clickConfirmButton() {
await this.confirmButton.click();
Expand Down

0 comments on commit af6b9bb

Please sign in to comment.