From 416b97943726710d368224a5ac1f5be218273735 Mon Sep 17 00:00:00 2001 From: implexrr <84114379+implexrr@users.noreply.github.com> Date: Wed, 11 Nov 2026 22:51:25 -0500 Subject: [PATCH 1/4] refactor: move supporting report details below results --- scripts/preview-browser.mjs | 12 ++++++++++++ src/App.tsx | 6 +++--- src/components/FindingsReport.tsx | 1 - 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/scripts/preview-browser.mjs b/scripts/preview-browser.mjs index 0b0dd2f..636a2b7 100644 --- a/scripts/preview-browser.mjs +++ b/scripts/preview-browser.mjs @@ -257,6 +257,17 @@ try { assert.equal(await websiteEntry.inputValue(),publicReport.requestedUrl); await page.locator('.results').getByText('Requested URL: ' + publicReport.requestedUrl, { exact: true }).waitFor(); await page.waitForFunction(() => document.activeElement?.matches('.results')); + assert.equal(await page.locator('.results .manual-card').getByText(/axe-core/).count(), 0); + const reportSupportFollows = async content => { + const bottom = await content.evaluate(node => node.getBoundingClientRect().bottom); + for (const block of [ + page.locator('.results').getByText('Automated results for the final scanned page only. Manual review is still required.', {exact:true}), + page.locator('.results .scan-coverage'), + page.locator('.results .report-exports'), + ]) assert.ok(await block.evaluate(node => node.getBoundingClientRect().top) >= bottom); + }; + await reportSupportFollows(page.locator('.results .findings-layout')); + assert.equal(await page.getByText('Automated page scan', { exact: true }).count(), 1); const coverageNotice=page.locator('.results').getByRole('region',{name:'Scan coverage',exact:true}); await coverageNotice.getByText('Scan coverage is limited',{exact:true}).waitFor(); @@ -362,6 +373,7 @@ try { await printablePdf(publicResponse); await page.getByRole('button', {name:/Visual preview/}).click(); await page.getByRole('heading', {name:'Scanned website snapshot',exact:true}).waitFor(); + await reportSupportFollows(page.locator('.preview-workspace')); const captured = page.frameLocator('iframe').first(); await captured.getByText('Captured website marker',{exact:true}).waitFor(); assert.equal(await page.locator('iframe').count(),2); diff --git a/src/App.tsx b/src/App.tsx index 3db1d1e..5b2e818 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -156,10 +156,7 @@ export function App() { Automated page scan -
Automated results for the final scanned page only. Manual review is still required.
{pageNotice &&

{pageNotice}

} - -
@@ -171,6 +168,9 @@ export function App() { {report.previewUnavailable ? 'The website image could not be captured.' : 'Website image capture is disabled.'} Your accessibility report and JSON download are still available.
} +
Automated results for the final scanned page only. Manual review is still required.
+ + }