garris / BackstopJS

Catch CSS curve balls.
http://backstopjs.org
MIT License
6.69k stars 604 forks source link

Multiple page on a single app/url website #1401

Open rhadronq opened 2 years ago

rhadronq commented 2 years ago

Hello - I am trying to build our visual regression tests but I am currently stuck at the moment. Our web app contains 3 screens but technically is just a single app so the URL of it stays at /example. So for page 1 - it needs to click Continue page 2 - still needs to click Continue page 3 - user can submit the form.

So I am thinking how can I test these three screens if they have the same URL. I can use the clickSelector but only until the second page.

Hope someone can help. Thanks

garris commented 2 years ago

Create an onReady script to click & wait through to your various steps.

rhadronq commented 2 years ago

Create an onReady script to click & wait through to your various steps.

Thanks garris! aside from CasperJs, will there be any other that I can use to navigate through various steps?