xxxxxxxxxx// Loading product hunt, and letting all async assets loadI.goTo("https://www.producthunt.com/posts/uilicious-snippet")I.see("Uilicious Snippet");// Lets grab the title, after waiting for all async requestsI.wait(5);let title = UI.execute(()=>{ return document.title })TEST.log.info("I see page title is \"" + title + "\"");// Asset that title shows current productif(title.startsWith("Uilicious Snippet")){ TEST.log.pass("The page title is correct");}else{ TEST.log.fail("The page title is wrong. Fix it @producthunt");}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!
FAILED. 0 of 1 errors
17s (9s)
1.
I go to "https://www.producthunt.com/posts/uilicious-snippet"
2.6s
2.
I see "Uilicious Snippet"
0.3s
3.
I wait for 5s
5.6s
4.
Execute Javascript
5.
I see page title is "BugHerd - The world's simplest bug tracker, just point and click | Product Hunt"
6.
The page title is wrong. Fix it @producthunt
Error: The page title is wrong. Fix it @producthunt