I didn't pass the assessment, and I revisited it to see if I could come up with a better solution, but I'm not sure if it aligns with the expected solution. I think the new version aligns even less. I got to use Playwright!
In this task, you'll create a script for Hacker News using JavaScript and Microsoft’s Playwright framework.
- Install node modules by running
npm i
. - Edit the
index.js
file in this project to navigate to Hacker News/newest and validate that EXACTLY the first 100 articles are sorted from newest to oldest. You can run your script with thenode index.js
command.
Feel free to update Playwright or install additional packages as needed; however, you must use Playwright in this assignment.