Skip to content

Commit

Permalink
Change assertion text within channels checkbox in e2e tests (#4585)
Browse files Browse the repository at this point in the history
* to detailed copy fix

* Update fast-badgers-wink.md
  • Loading branch information
wojteknowacki authored Jan 3, 2024
1 parent bb1401b commit 3b9f4ee
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/fast-badgers-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": minor
---

Change assertion text within channels checkbox in e2e tests
2 changes: 1 addition & 1 deletion playwright/data/copy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const AVAILABILITY = {
in1OutOf7Channels: "In 1 out of 7 channels",
in1OutOf: "In 1 out of",
};
2 changes: 1 addition & 1 deletion playwright/tests/discountAndVouchers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ test("TC: SALEOR_85 Create voucher with manual code and percentage discount @vou
`Given codes: ${code} should have status Active displayed on grid`,
).toEqual(1);
await vouchersPage.page
.getByText(AVAILABILITY.in1OutOf7Channels)
.getByText(AVAILABILITY.in1OutOf)
.waitFor({ state: "visible" });
});

Expand Down
2 changes: 1 addition & 1 deletion playwright/tests/product.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ test("TC: SALEOR_46 As an admin, I should be able to update a product by uploadi
await expect(
productPage.productAvailableInChannelsText,
"Label copy shows 1 out of 7 channels ",
).toContainText(AVAILABILITY.in1OutOf7Channels);
).toContainText(AVAILABILITY.in1OutOf);
expect(
await productPage.productImage.count(),
"Newly added single image should be present",
Expand Down

0 comments on commit 3b9f4ee

Please sign in to comment.