test(ui): qualify career documents calendar and chart visuals
This commit is contained in:
@@ -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`) });
|
||||
|
||||
Reference in New Issue
Block a user