Replies: 2 comments
-
What docker commands are you issuing in order to execute the backstop tests? Are you using the backstop docker image? If it's through the image I've had to do something like this in the past:
Based on what you're saying, the key part of that command is providing the |
Beta Was this translation helpful? Give feedback.
-
Thanks for your suggestion! Based on that information, we are able to create an alias to execute backstop commands in the docksal container. We are not running docksal_dns, so instead we manually add the host mapping as part of the command.
To automate this command for any environment, we created a command that works specifically in our backstop install directory -
This can be used in the backstop testing folder to set the correct host entry. |
Beta Was this translation helpful? Give feedback.
-
We are using BackstopJS Visual Regression on our Drupal 9 websites, running our local installs on Docksal. We create reference images from our LIVE site using the local Backstop command:
backstop reference --docker
No troubles, the docker image can find the publicly available URL.
BUT when we run the test images using this command:
backstop test --docker
The docker browser cannot find the local url:
How do we get the backstop docker instance to 'see' the local url?
Beta Was this translation helpful? Give feedback.
All reactions