xxxxxxxxxx
// Go to catalog page
I.goTo("https://www.hookcoffee.com.sg/catalogue/category/coffee/by-the-bag_3/")
// Select country
I.see("Please select your store")
I.click("Singapore")
// Ensure that catalog has at least 10 products
TEST.log.info("Test Case #102 : Catalog should show at least 10 products")
let count = I.getCount(".product-card")
if (count >= 10) {
TEST.log.pass("Catalog has at least 10 products.")
} else {
TEST.log.fail("Catalog has less than 10 products!")
}
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!

SUCCESS!
15s (13s)
1.
[start of test]
2.
I go to "https://www.hookcoffee.com.sg/catalogue/category/coffee/by-the-bag_3/"
7.9s
3.
I see "Please select your store"
0.1s
4.
I click "Singapore"
5.1s
5.
Test Case #102 : Catalog should show at least 10 products
6.
I count ".product-card"
0.1s
7.
Catalog has at least 10 products.
8.
[end of test]