DEV Community

Easy browser testing with Poi and Puppeteer

EGOIST on December 16, 2018

Poi is a modular tooling for modern web development, a few days ago I released a Poi plugin called Puppet which runs your code inside a browser. T...
Collapse
 
aarmora profile image
Jordan Hansen

Hey Egoist!

Thanks for the post.

Do you think this would be something where you could test against something you didn't have the code for? Like what if you just pointed puppeteer at a deployed environment and kind of mounted mocha against that.

What have you here seems to go that direction.

Collapse
 
maininfection profile image
Ricardo Machado

Nice post.
Since you're using yarn you can run yarn create poi-app test-puppet.

Thanks, will definitely check it up! 👍

Collapse
 
egoist profile image
EGOIST

You're right, I've no idea why I used npx in the example 😂 npm init poi-app test-puppet should also work.

Collapse
 
mattauckland profile image
Mat

I'm surprised at how little the regular assert tells you 🤔
Nice write up