Skip to content

Commit 846c3b5

Browse files
committed
Fix failing e2e due to invalid assertions
1 parent f37f316 commit 846c3b5

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

playwright/data/copy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const AVAILABILITY = {
2-
in1OutOf: "In 1 out of",
2+
in1OutOf: "In 1 of",
33
};

playwright/pages/productPage.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ export class ProductPage extends BasePage {
2929
constructor(
3030
page: Page,
3131
readonly productsNames = page.getByTestId("name"),
32-
readonly productAvailableInChannelsText = page.getByTestId(
33-
"product-available-in-channels-text",
34-
),
32+
readonly productAvailableInChannelsText = page.getByTestId("availability-card"),
3533
readonly createProductButton = page.getByTestId("add-product"),
3634
readonly cogShowMoreButtonButton = page.getByTestId("show-more-button"),
3735
readonly exportButton = page.getByTestId("export"),

src/components/notifications/Toast.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export const Toast = ({ id, type, title, description, action }: ToastProps) => {
122122

123123
return (
124124
<Box
125+
data-test-type={type}
125126
display="flex"
126127
alignItems="flex-start"
127128
gap={3}

0 commit comments

Comments
 (0)