major
minor
major
minor
jTidy is used in application tests to parse and analyze the generated HTML.
Problem
The version of jTidy being used does not yet support HTML5 tags. For example, if you have a chart.js report on the home page, tests will 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
Theoretically: Configure the app with a chart.js report on the home page, record a test script, and run application tests.
Easier: 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 to a specific state and thereby checks the page using the validator. This action is executed after the ChartJS charts are displayed in tl-demo.
See com.top_logic.layout.scripting.runtime.action.RenderAction