drupal-code-generator
drupal-code-generator copied to clipboard
Feature request: enable JavaScript testing
I have no idea how to get headless chrome running in github actions (to be fair it caused endless headaches locally as well). PR to get it running would be welcome. It should restore the following files:
- tests/sut/bar/tests/src/FunctionalJavascript/JavaScriptTest.php
- tests/sut/qux/tests/src/FunctionalJavascript/FieldBase.php
- tests/sut/qux/tests/src/FunctionalJavascript/FieldFormatterTest.php
- tests/sut/qux/tests/src/FunctionalJavascript/FieldWidgetTest.php
And revert 53d7c3aac4 which commented out the generated test in xerox.
The previous maintainer said back in November phpunit just skipped these but it surely doesn't do that now.
probably it needs to switch to w3c driver https://www.drupal.org/node/3460567
There's a lot more than that, it probably needs a selenium container -- without it I got a connection error -- I tried adding it and then I got a no capabilities available error message and that's where I gave up. Probably chromedriver is missing etc. Getting these tests running is certainly not the best use of my time, there's a lot to do.
I started on this again the branch webdrivertest but got nowhere.