Skip to content

Commit 71f1a31

Browse files
authored
feat: Log the actual page being scanned (#58)
Fixes github/continuous-ai-for-accessibility#79 (Hubber access only) This PR logs the URL _actually_ open in the Playwright-driven browser, revealing whether the scanner is repeatedly scanning a login or 404 page instead of the intended page.
2 parents 57e18e4 + ca4e9a0 commit 71f1a31

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/actions/find/src/findForUrl.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export async function findForUrl(url: string, authContext?: AuthContext): Promis
99
const context = await browser.newContext(contextOptions);
1010
const page = await context.newPage();
1111
await page.goto(url);
12+
console.log(`Scanning ${page.url()}`);
1213

1314
let findings: Finding[] = [];
1415
try {

.github/actions/find/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default async function () {
1414

1515
let findings = [];
1616
for (const url of urls) {
17-
core.info(`Scanning ${url}`);
17+
core.info(`Preparing to scan ${url}`);
1818
const findingsForUrl = await findForUrl(url, authContext);
1919
if (findingsForUrl.length === 0) {
2020
core.info(`No accessibility gaps were found on ${url}`);

0 commit comments

Comments
 (0)