Skip to content

Commit

Permalink
change url assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
wojteknowacki committed Dec 19, 2023
1 parent 4ce3b51 commit 0756596
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playwright/tests/product.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,9 @@ test("TC: SALEOR_61 As an admin I should be able to delete existing variant @bas
"Message about how to add new variant should be visible in place of list of variants",
).toBeVisible();
await expect(
productPage.productNameInput,
productPage.page.url(),
"Deleting last variant from variant details page should redirect to product page",
).toHaveText(PRODUCTS.singleVariantDeleteProduct.productName);
).toContain(PRODUCTS.singleVariantDeleteProduct.productId);
});

test("TC: SALEOR_62 As an admin I should be able to bulk delete existing variants @basic-regression @product @e2e", async () => {
Expand Down

0 comments on commit 0756596

Please sign in to comment.