Fixes for scatterplot
Test and deploy / deploy (push) Successful in 31s

This commit is contained in:
2026-07-29 10:06:39 -05:00
parent 3c7abc1cbc
commit cf56445915
8 changed files with 77 additions and 347 deletions
+2 -16
View File
@@ -56,26 +56,12 @@ test('counts unique releases at major and minor levels and hotfixes at patch lev
);
});
test('renders the nested levels into a static HTML page', () => {
test('renders the graph without displaying the legacy release tables', () => {
const html = renderStatisticsPage(buildReleaseStatistics([
{ product: 'PAN-OS', issueType: 'addressed', version: '10.1.2-h1' }
]));
assert.match(html, /class="stats-major"/);
assert.match(html, /class="stats-minor"[^>]+hidden/);
assert.match(html, /class="stats-patch"[^>]+hidden/);
assert.match(html, /class="stats-toggle"[^>]+aria-expanded="false"/);
assert.match(html, /src="js\/statistics\.js"/);
assert.match(html, /id="issue-plot-canvas"/);
assert.match(html, />1 hotfix</);
});
test('pluralizes hotfix counts correctly', () => {
const html = renderStatisticsPage(buildReleaseStatistics([
{ product: 'PAN-OS', issueType: 'addressed', version: '10.1.2-h1' },
{ product: 'PAN-OS', issueType: 'addressed', version: '10.1.2-h2' }
]));
assert.match(html, />2 hotfixes</);
assert.doesNotMatch(html, /hotfixs/);
assert.doesNotMatch(html, /class="stats-product"/);
});