Our Drupal brethren have gone through a series of tasks over the years of the D8/D9 cycle, each one introducing a new way to test JS, and deprecating the previous way:
- Javascript end-to-end testing added (JavascriptTestBase), using Phantomjs (introduced in D8.1 / change record / https://www.drupal.org/project/drupal/issues/2469713 / https://www.drupal.org/project/drupal/issues/2702661)
- Test Drupal using webDriver/selenium/chromedriver (introduced in D8.5 / change record / https://www.drupal.org/project/drupal/issues/2775653)
- JavascriptTestBase deprecated in favor of WebDriverTestBase (change record / https://www.drupal.org/project/drupal/issues/2942900 / https://www.drupal.org/project/drupal/issues/3088688)
It is my understanding that there is no JS testing in D7/Backdrop, and that we rely on manual testing when it comes to it. This issue here is to discuss and decide whether we should introduce a framework to be testing JS in Backdrop.
Pros
- no more tedious/manual tests for JS functionality
- leverage any tests already in D8+ that also apply to us (like tests for
#statesfor example: #5161) - ...?
Cons
- introducing dependencies to run tests
- increase in time for automated tests to run
- ...?
GitHub Issue #:
5160
Recent comments
Hi Egmund, BackdropCMS tries hard to output valid markup, by default even the "raw" format. Your code is invalid, though, as there's a <style> tag inside the body, whereas...
Paypal button code gets messed-up
I have tried ckeditor tinymce and 'nothing' - same results, code get messed up. Something is 'fixing' and instead messing up. If there is no way to have actually raw html in BackdropCMS...
Paypal button code gets messed-up
Make sure that ckeditor or tinymce is not enabled for that filter. Especially ckeditor is opinionated and will change the html.
Paypal button code gets messed-up