Bugfix
jTidy is used in application tests to parse and analyze the generated HTML.
Problem
The used version of jTidy does not support HTML5 tags yet. For example, if you have a chart.js report on the home page, then tests fail with the message "<canvas> not recognized".
Solution
Update jTidy to
<dependency> <groupId>com.github.jtidy</groupId> <artifactId>jtidy</artifactId> <version>1.0.3</version> </dependency>
Test
Theoretical: configure app with chart.js report on home page, record test script and run application tests.
Simpler: com.top_logic.demo/src/test/java/test/com/top_logic/demo/scripted/charts/TestRenderChartJS.script.xml
There is a new test action that re-renders the session at a specific state, thus testing the page via the validator. This action is executed after the ChartJS charts are displayed in tl-demo.
Cf. com.top_logic.layout.scripting.runtime.action.RenderAction