< Selenium < How-to
Follow the instructions located at Run tests targeting MediaWiki-Docker. For information on which environments support a visible browser, see the Selenium/Reference/Running tests page.
Browser visibility in Docker is controlled by the DISPLAY
environment variable. This variable is by default not set on macOS. It is by default set on Ubuntu Linux.
Visible
To make the browser visible, make sure the DISPLAY
environment variable is set to any value.
export DISPLAY=1
Hidden
To make the browser hidden, make sure the DISPLAY
environment variable is not set.
unset DISPLAY
Run Selenium tests
npm run selenium-test
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.