Skip to content

Commit

Permalink
Fix flaky test - TC: SALEOR_3 Create basic product with variant
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowee committed May 7, 2024
1 parent a6ed457 commit 9849dcc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/cool-beers-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": minor
---

Fix flaky test - TC: SALEOR_3 Create basic product with variant
1 change: 1 addition & 0 deletions playwright/pages/dialogs/productCreateDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export class ProductCreateDialog extends BasePage {

async selectProductTypeWithVariants(productType = "Beer") {
await this.waitForNetworkIdle(() => this.dialogProductTypeInput.fill(productType));
await this.promptedOptions.filter({ hasText: productType }).waitFor({ state: "attached" });
await this.promptedOptions.filter({ hasText: productType }).click();
}

Expand Down

0 comments on commit 9849dcc

Please sign in to comment.