test(ui): qualify career documents calendar and chart visuals

This commit is contained in:
cesnimda
2026-11-04 07:48:23 +01:00
parent b31ce6176b
commit dd284782fd
620 changed files with 10273 additions and 22 deletions
@@ -75,7 +75,8 @@ try {
const markers = activity.locator('svg circle');
assert.equal(await markers.nth(0).getAttribute('cy'), '20'); assert.equal(await markers.nth(1).getAttribute('cy'), '140');
await activity.scrollIntoViewIfNeeded();
const panel = activity.getByRole('group'); if (await panel.count()) await panel.evaluate(node => { node.scrollTop = 0; });
const panel = activity.locator('[role="group"][tabindex="0"]');
assert.ok(await panel.count() <= 1); if (await panel.count()) await panel.evaluate(node => { node.scrollTop = 0; });
const scan = await new AxeBuilder({ page }).withTags(['wcag2a', 'wcag2aa', 'wcag21aa', 'wcag22aa']).analyze();
report.screens.push({ width, language, mode, state: 'single-month-markers', violations: scan.violations }); assert.deepEqual(scan.violations, []);
await page.screenshot({ path: path.join(out, `single-month-${language}-${mode}-${width}.png`) });