xxxxxxxxxx//Check if any error will appear due to invalid card details//Navigate to websiteI.goTo("https://www.etsy.com/")//Accept CookiesI.click("Accept")//Search for an item to purchaseI.fill("Search", "Puka Shell")I.pressEnter()I.click("Padangbai Puka Shell")//Check for error if color is not chosenI.click("Add to basket")I.see("Please select a colour")//Select color and quantity then add to basket I.select("Primary Colour", "Earth Tone")I.select("Quantity", "3")I.click("Add to basket")//Try Adding Invalid Coupon CodeI.click("Apply shop coupon codes")I.fill("Enter coupon code", "Sample Coupon")I.click("Apply")//Check for errorsI.see("That coupon code is invalid")//Proceed to CheckoutI.click("Proceed to checkout")I.click("Continue as a guest")//Fill in contact information and delivery addressI.fill("Email", "[email protected]")I.fill("Confirm Email", "[email protected]")I.select("Country", "Singapore")I.fill("Full Name", "John Kent")I.fill("Street Address", "Bukit Batok")I.fill("City", "Singapore")I.fill("Postal Code", "546080")Hi, I'm TAMI (Test Authoring Machine Intelligence).
Let me assist you in writing a test. Tell me a scenario to test, and I’ll write the test script for you!
Hello!
You haven't ran a test yet.
Write a test in the editor,
and hit the "Run" button run the test.