File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/Shared/BrowserTesting/src Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,10 @@ private async Task InitializeAsync()
46
46
47
47
async Task InitializeCore ( )
48
48
{
49
- Playwright = await PlaywrightSharp . Playwright . CreateAsync ( _loggerFactory /*, debug: "pw:api"*/ ) ;
49
+ // Work around weird driverExecutable lookup logic
50
+ var helixDirectory = Environment . GetEnvironmentVariable ( "HELIX_WORKITEM_ROOT" )
51
+ var driverPath = string . isNullOrEmpty ( helixDirectory ) ? null : Path . Combine ( helixDirectory , "runtests.sh" ) ;
52
+ Playwright = await PlaywrightSharp . Playwright . CreateAsync ( _loggerFactory , driverExecutablePath : driverPath /*, debug: "pw:api"*/ ) ;
50
53
foreach ( var ( browserName , options ) in _browserManagerConfiguration . BrowserOptions )
51
54
{
52
55
if ( ! _launchBrowsers . ContainsKey ( browserName ) )
You can’t perform that action at this time.
0 commit comments