From f6c28ab1d26540494c776c4004f6c7a07403de7a Mon Sep 17 00:00:00 2001 From: Krithikj Date: Fri, 29 Mar 2024 18:08:40 +0530 Subject: [PATCH] Modified Remove product details code --- .idea/vcs.xml | 6 ++++++ src/test/java/RemoveProduct.java | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 .idea/vcs.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/test/java/RemoveProduct.java b/src/test/java/RemoveProduct.java index cca061f..d81bf64 100644 --- a/src/test/java/RemoveProduct.java +++ b/src/test/java/RemoveProduct.java @@ -8,6 +8,8 @@ public void removeProduct() { RemoveProductPageObjects remove = new RemoveProductPageObjects(driver); remove.setSearch(); remove.setAddToCartButton(); + Assert.assertEquals(remove.removeItem(), "Your Amazon Cart is empty."); + System.out.println("Product Removed"); } }