File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 1- import type { Finding } from ' ./types.d.js' ;
2- import AxeBuilder from ' @axe-core/playwright'
3- import playwright from ' playwright' ;
4- import { AuthContext } from ' ./AuthContext.js' ;
1+ import type { Finding } from " ./types.d.js" ;
2+ import AxeBuilder from " @axe-core/playwright" ;
3+ import playwright from " playwright" ;
4+ import { AuthContext } from " ./AuthContext.js" ;
55
6- export async function findForUrl ( url : string , authContext ?: AuthContext ) : Promise < Finding [ ] > {
7- const browser = await playwright . chromium . launch ( { headless : true , executablePath : process . env . CI ? '/usr/bin/google-chrome' : undefined } ) ;
6+ export async function findForUrl (
7+ url : string ,
8+ authContext ?: AuthContext ,
9+ ) : Promise < Finding [ ] > {
10+ const browser = await playwright . chromium . launch ( {
11+ headless : true ,
12+ executablePath : process . env . CI ? "/usr/bin/google-chrome" : undefined ,
13+ } ) ;
814 const contextOptions = authContext ?. toPlaywrightBrowserContextOptions ( ) ?? { } ;
915 const context = await browser . newContext ( contextOptions ) ;
1016 const page = await context . newPage ( ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export default async function () {
88 const urls = core . getMultilineInput ( "urls" , { required : true } ) ;
99 core . debug ( `Input: 'urls: ${ JSON . stringify ( urls ) } '` ) ;
1010 const authContextInput : AuthContextInput = JSON . parse (
11- core . getInput ( "auth_context" , { required : false } ) || "{}"
11+ core . getInput ( "auth_context" , { required : false } ) || "{}" ,
1212 ) ;
1313 const authContext = new AuthContext ( authContextInput ) ;
1414
You can’t perform that action at this time.
0 commit comments