Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix accessibility tests for examples without JS enhancements
The `render` helper assumed all examples of a component for which a JavaScript component exist would have a `data-module` and as such forced initialising a JavaScript component when no element with the appropriate `data-module` was found on the page. This behaviour is handy to spot if a component suddenly stops rendering `data-module`, so we don't want to change the `render` function. For the File Upload, we can decide whether the error is relevant in the test, based on whether the `javascript` macro option is set.
- Loading branch information