E2E Test Cases for Slash.cool Website
Create an e2e test for https://slash.cool, contains the following cases. 1. Open the website, make sure the central text input loading and display correct 2. Click the "GitHub Trending Repos", make sure the text input is filled with proper prompt 3. Click the "Product Hunt Leaderboard" in "From the Community" section, make sure the page redirect to the correct url, and the target page loaded successfully 4. Back to the home page, scroll to the bottom, click the "Get Starter Now" button, make sure the page scrolls back to top Click pricing in the header, make sure it redirect to the pricing page 5. Click blog in the header, make sure it redirect to the blog page Record result and time for each case.
Sample Output
Example output generated from this coding session
{ "totalTests": 7, "passed": 7, "failed": 0, "totalDuration": 33698, "timestamp": "2025-08-28T18:37:55.863Z", "results": [ { "testName": "Open website and verify text input", "status": "PASSED", "duration": 4119, "result": { "textInputVisible": true, "textInputEnabled": true } }, { "testName": "Click GitHub Trending Repos button", "status": "PASSED", "duration": 1665, "result": { "inputFilled": true, "inputValue": "Write a script to scrape today's trending JavaScript repositories from GitHub trending page (https:/" } }, { "testName": "Click Product Hunt Leaderboard from Community section", "status": "PASSED", "duration": 5670, "result": { "redirected": true, "currentUrl": "https://slash.cool/share/web-scraping-script-for-product-hunt-weekly-leader-ra9mka", "originalHref": null, "pageLoaded": true } }, { "testName": "Back to home, scroll and click Get Started Now", "status": "PASSED", "duration": 7003, "result": { "scrolledToBottom": true, "scrolledBackToTop": true, "scrollBefore": 2152, "scrollAfter": 0 } }, { "testName": "Click pricing in header", "status": "PASSED", "duration": 3152, "result": { "redirectedToPricing": true, "currentUrl": "https://slash.cool/pricing" } }, { "testName": "Click blog in header", "status": "PASSED", "duration": 6081, "result": { "redirectedToBlog": true, "currentUrl": "https://slash.cool/blog" } }, { "testName": "Click Community in header", "status": "PASSED", "duration": 6008, "result": { "redirected": false, "currentUrl": "https://slash.cool/", "originalHref": "https://discord.gg/KXvAxxe45h", "pageLoaded": true } } ] }
Conversation
4 messages
Frequently Asked Questions
Key insights from this conversation