New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Watching tests run via noVNC not working for me in a Drupal 10 ddev project without deleting --headless from config #23
Comments
Some info about your environment might be helpful. I just tried this on Drupal 10 on macOS and I can see the tests as expected. Make sure your browser window is maximized and you can see the whole VNC screen; it might be that the tests are being shown in a part of the screen that is hidden because the whole window isn't visible. |
What @agentolivia describes is also how this works for me. And I've used this feature quite a bit. If you want to see the Chrome browser open up, and be able to watch as the tests execute and drive the browser. Or to be able to pause and interact with the site under test via the Chrome browser, you need to remove the This is true regardless of DDEV, or Docker, or any other environment. When you specify If the goal is to be able to watch the tests run in Chrome via noVNC without having to change the default config. We should remove the |
I'm running:
I'm using a fresh pull of this service and this is the config file saved in my project's .ddev directory: https://github.com/ddev/ddev-selenium-standalone-chrome/blob/main/config.selenium-standalone-chrome.yaml Like @eojthebrave said, I should NOT expect to see the tests run visibly in a browser via noVNC over port 7900 because the configuration specifies |
Just installed on a new Drupal project. I was unable to see the test run until I removed DDEV: |
I've been working with Playwright, but by default it runs tests headless. Instead, you have to specify I would say when I last used DTT it was in ddev, but we configured |
Currently using #27 and the change here to even be able to run the tests. But I can't watch them. |
The |
The docs imply that there is not needed though. |
@tyler36 the docs point you to where you can see the tests run. That doesn't change the fact that chromium in headless mode won't render a window (more: https://developer.chrome.com/blog/headless-chrome) The default Behat example, as well as the example in #27 all have
This is because tests will run faster this way, but I can see that it confuses people. |
Thanks everyone, I can confirm that the Watching the tests steps in the README allowed me to see the tests running in Firefox. Tip: After removing |
I can't see tests run using noVNC unless I edit .ddev/config-selenium-standalone-chrome.yaml and delete the
--headless
flag from theMINK_DRIVER_ARGS_WEBDRIVER
configuration.Here's my steps to reproduce:
ddev get ddev/ddev-selenium-standalone-chrome
and thenddev restart
ddev describe
and copy the URL listed forselenium-chrome
, paste it into a browser, and enter thesecret
password.ddev exec -d /var/www/html/web "../vendor/bin/phpunit -v -c ./core/phpunit.xml.dist ./core/modules/system/tests/src/FunctionalJavascript/FrameworkTest.php"
, (which is the example from the README).It's my understanding this is supposed to work out-of-the-box without any configuration changes. Yes, I understand that the tests run super fast in the browser. I noticed that when I got it working by editing the config file and removed the
--headless
flag.The text was updated successfully, but these errors were encountered: