Details
-
Task
-
Resolution: Invalid
-
Major
-
None
-
11.10.13
-
Unknown
-
Description
The manual test is here: Chart Macro Bar Chart
Existing automated coverage
- ChartMacroIT#chartDataTableProducedByScript: Functional test that a chart macro (type line, data from another document, created over REST) renders an image with its title, as admin and as a simple user; no bar chart, no inline content, no CKEditor
- IntegrationTests (macrochart2.test): Rendering test of a bar chart (xdom source, range B1-C3, series rows, title): asserts the generated image markup only
- TableCategoryDatasetBuilderTest#buildCategoryDatasetColumnsSeries: Unit test of the category dataset (used by bar charts) built from a table range with series:columns
Missing automated coverage
- Create a page and edit it with CKEditor; Insert > Other Macros, search for and select the Chart macro
- Fill the macro form: Type = bar, Content = the 4x3 inline table from the manual test, Params = range:B2-D5;series:columns, Title = Chart; Submit
- Save & View and assert the page has no rendering error and holds exactly one chart (ChartElement) whose title is "Chart" and whose image is loaded
- Optionally assert the saved source holds the chart macro with type="bar"
Suggested location: xwiki-platform-core/xwiki-platform-chart/xwiki-platform-chart-test/xwiki-platform-chart-test-docker/src/test/it/org/xwiki/chart/test/ui/ChartMacroIT.java
Found by comparing the most-run manual tests (XWiki 16.x-18.x runs) against the automated tests on master (7c8ae46f525).