Skip to content

Commit

Permalink
update home test assertion after removing UI elements from home (#4487)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojteknowacki committed Nov 23, 2023
1 parent b7ed22f commit 016bb7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-mice-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": minor
---

update home test assertion after removing UI elements from home
5 changes: 1 addition & 4 deletions playwright/pages/homePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class HomePage {
this.topProducts = page.getByTestId("top-products");
this.ordersReadyToFulfill = page.getByTestId("orders-to-fulfill");
this.paymentsWaitingForCapture = page.getByTestId("orders-to-capture");
this.productsOutOfStock = page.getByTestId("products-out-of-stock");
this.productsOutOfStock = page.getByTestId("out-of-stock-analytics");
}
async goto() {
await this.page.goto("/");
Expand All @@ -43,11 +43,8 @@ export class HomePage {

async expectHomePageElementsToBeVisible() {
await expect(this.sales).toBeVisible();
await expect(this.orders).toBeVisible();
await expect(this.activity).toBeVisible();
await expect(this.topProducts).toBeVisible();
await expect(this.ordersReadyToFulfill).toBeVisible();
await expect(this.paymentsWaitingForCapture).toBeVisible();
await expect(this.productsOutOfStock).toBeVisible();
}
}

0 comments on commit 016bb7c

Please sign in to comment.