Fix regex in sales

This commit is contained in:
Karolina Rakoczy 2021-02-11 17:06:14 +01:00
parent 7bb8a8fee2
commit 6e66ccc0f6

View file

@ -139,7 +139,7 @@ describe("User authorization", () => {
.softAssertMatch(DASHBOARD_SELECTORS.productsOutOfStock, regex)
.softAssertMatch(
DASHBOARD_SELECTORS.sales,
new RegExp(`\\D+${sales}[\,\.]00\\D+`)
new RegExp(`\\D+${sales}[\,\.]00\\D*`)
)
.softAssertMatch(DASHBOARD_SELECTORS.orders, /\D+2\D*/);
});