slouchpie
Using 2 windows/tabs simultaneously with Wallaby
Hi
I am writing user interaction tests for an application that has 2 different websites:
- a customer-facing site where they can place orders
- a business-facing site where customer orders appear (thanks to LiveView)
I was hoping Wallaby could help me with this but I am having great trouble just trying to write a test where I can interact with two pages simultaneously. It appears to not have the ability to just open a new window or tab?
I am able to test visiting the customer site, placing an order, then visiting the business site and seeing the order. But this doesn’t test the “Live View”, which is really the most important thing to test. I want to be able to keep the business site open in one window/tab and interact with the customer site in another window/tab. I thought this would be a first-class priority for a user-interaction testing framework but there is nothing in the docs about it.
Does anyone have any ideas for how I can solve this? Will I have to do some javascript hackery (https://hexdocs.pm/wallaby/Wallaby.Browser.html#execute_script/2)?
Marked As Solved
baldwindavid
The readme seems to highlight that feature and with more documentation at https://hexdocs.pm/wallaby/Wallaby.Feature.html#feature/3-sessions
Is that something that was attempted and did not work?







