Angie Jones
https://angiejones.tech
https://TestAutomationU.com
@techgirl1908
Senior Developer Advocate, Applitools
Director, Test Automation University
San Francisco, CA, USA
@techgirl1908
@techgirl1908
@techgirl1908
@techgirl1908
@techgirl1908
@techgirl1908
@techgirl1908
@techgirl1908
@techgirl1908
@techgirl1908
@Test
public void test_add_to_cart(){
productPage.setColor("Red");
productPage.setSize("M");
productPage.setQuanity(2);
productPage.addToCart();
productPage.goToCart();
assertTrue(cart.isProductInCart("TOKYO TALKIES"));
}
@techgirl1908
@techgirl1908
@Test
public void test_add_to_cart(){
String product = "TOKYO TALKIES";
String color = "Red";
String size = "M";
int quantity = 2;
productPage.setColor(color);
productPage.setSize(size);
productPage.setQuanity(quantity);
productPage.addToCart();
cart = productPage.goToCart();
assertTrue(cart.isProductInCart(product));
assertEquals(cart.getColor(product), color);
assertEquals(cart.getSize(product), size);
assertEquals(cart.getQuantity(product), quantity);
assertEquals(cart.getPrice(product), "₹100.00");
assertEquals(cart.getTotal(product), "₹200.00");
assertEquals(cart.getNumberOfItems, 1);
}
@techgirl1908
@Test
public void test_add_to_cart(){
productPage.setColor("Red");
productPage.setSize("M");
productPage.setQuanity(2);
productPage.addToCart();
productPage.goToCart();
eyes.checkWindow();
}
@techgirl1908
@techgirl1908
@Test
public void test_English(){
goToEnglishVersion();
eyes.checkWindow();
}
@Test
public void test_Spanish(){
goToSpanishVersion();
eyes.checkWindow();
}
@techgirl1908
@techgirl1908
@techgirl1908
@techgirl1908
@techgirl1908
if(siteTitle.exists()){
//Execute desktop flow
}
else {
//Execute mobile flow
}
@techgirl1908
@techgirl1908
@techgirl1908
@techgirl1908
@techgirl1908
@Test
public void testAB(){
goToConversionPage();
//Will be either A or B
eyes.checkWindow();
}
@techgirl1908
@techgirl1908
@techgirl1908
@techgirl1908
Angie Jones
https://angiejones.tech
https://TestAutomationU.com
@techgirl1908
Senior Developer Advocate, Applitools
Director, Test Automation University
San Francisco, CA, USA