Skip to content

Commit

Permalink
[QA] Fixing flaky test - TC: SALEOR_205 Bulk delete customers (#4857)
Browse files Browse the repository at this point in the history
* Fixing flaky test - TC: SALEOR_205 Bulk delete customers

* fixing flaky gift card tests
  • Loading branch information
yellowee authored May 15, 2024
1 parent dd8d60a commit 70b2c40
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tame-foxes-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": minor
---

Fixing still flaky test - TC: SALEOR_205 Bulk delete customers
1 change: 1 addition & 0 deletions playwright/pages/basePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export class BasePage {
async typeInSearchOnListView(searchItem: string) {
await this.waitForNetworkIdle(async () => {
await this.searchInputListView.fill(searchItem);
await this.loader.waitFor({ state: "attached" });
await this.waitForGrid();
await this.waitForDOMToFullyLoad();
});
Expand Down
2 changes: 2 additions & 0 deletions playwright/pages/giftCardsPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ export class GiftCardsPage extends BasePage {

async clickIssueCardButton() {
await this.issueCardButton.click();
await this.loader.waitFor({ state: "hidden" });
await this.giftCardDialog.waitFor({ state: "visible" });
}

async clickBulkDeleteButton() {
Expand Down

0 comments on commit 70b2c40

Please sign in to comment.