Replicate User Activity with Faker and Puppeteer

Tyler Clark
InstructorTyler Clark

Share this video with your friends

Send Tweet

In this lesson we are going to test a form submission by replicating keyboard input, mouse clicks, and touchscreen events. This will be done with random user information generated by Faker. We will test this in different contexts, including an iPhone 6 environment.

Platon
Platon
~ 3 years ago

Please don't replace older but still relevant parts of the lesson (page with html backend) with newer ones (page with touch backend), it makes the lesson git repository not as useful as could have been and forces me to hunt for the relevant parts of the video if I missed anything.

Just keep the old file as backup if necessary if making it work in parallel is a hassle.

Learn Sifnos
Learn Sifnos
~ 3 years ago

I'm using Puppeteer version 1.3.0and it seems DeviceDescriptors format has changed.

Replace const iPhone = devices['iPhone 6'] with const iphone = devices.filter(d => d.name === "iPhone 6")[0]

83042dc1-54ae-4175-971a-e14408ce5d8e@anonymous.zalando.com
83042dc1-54ae-4175-971a-e14408ce5d8e@anonymous.zalando.com
~ 3 years ago

or simply const iphone = devices.find(({name}) => name === 'iPhone 6')

Piotr
Piotr
~ a year ago

Is there a way to get rid of 16000 timeout in tests? What if test will run longer?