@@ -24,7 +24,7 @@ public class HybridFlowTest : IClassFixture<InstallPlaywrightBrowserFixture>
2424 private const string TraceFileClassName = "OpenIDConnect-HybridFlow" ;
2525 private const uint NumProcessRetries = 3 ;
2626 private const string SampleSlnFileName = "2-5-HybridFlow.sln" ;
27- private const string SampleExeFileName = "\\ 2-5-HybridFlow.exe" ;
27+ private const string SampleExeFileName = "2-5-HybridFlow.exe" ;
2828 private readonly LocatorAssertionsToBeVisibleOptions _assertVisibleOptions = new ( ) { Timeout = 25000 } ;
2929 private readonly string _sampleAppPath = "2-WebApp-graph-user" + Path . DirectorySeparatorChar + "2-5-HybridFlow" + Path . DirectorySeparatorChar . ToString ( ) ;
3030 private readonly string _testAppsettingsPath = "UiTests" + Path . DirectorySeparatorChar + "HybridFlowUiTest" + Path . DirectorySeparatorChar . ToString ( ) + TC . AppSetttingsDotJson ;
@@ -52,7 +52,7 @@ public async Task ChallengeUser_MicrosoftIdFlow_LocalApp_ValidEmailPasswordCreds
5252 // Arrange Playwright setup, to see the browser UI set Headless = false.
5353 const string TraceFileName = TraceFileClassName + "_LoginLogout" ;
5454 using IPlaywright playwright = await Playwright . CreateAsync ( ) ;
55- IBrowser browser = await playwright . Chromium . LaunchAsync ( new ( ) { Headless = false } ) ;
55+ IBrowser browser = await playwright . Chromium . LaunchAsync ( new ( ) { Headless = true } ) ;
5656 IBrowserContext context = await browser . NewContextAsync ( new BrowserNewContextOptions { IgnoreHTTPSErrors = true } ) ;
5757 await context . Tracing . StartAsync ( new ( ) { Screenshots = true , Snapshots = true , Sources = true } ) ;
5858 IPage page = await context . NewPageAsync ( ) ;
@@ -65,7 +65,12 @@ public async Task ChallengeUser_MicrosoftIdFlow_LocalApp_ValidEmailPasswordCreds
6565
6666 // Start the web app and api processes.
6767 // The delay before starting client prevents transient devbox issue where the client fails to load the first time after rebuilding
68- var clientProcessOptions = new ProcessStartOptions ( _testAssemblyLocation , _sampleAppPath , SampleExeFileName , clientEnvVars ) ;
68+ var clientProcessOptions = new ProcessStartOptions (
69+ _testAssemblyLocation ,
70+ _sampleAppPath ,
71+ Path . DirectorySeparatorChar . ToString ( ) + SampleExeFileName ,
72+ clientEnvVars
73+ ) ;
6974
7075 bool areProcessesRunning = UiTestHelpers . StartAndVerifyProcessesAreRunning ( [ clientProcessOptions ] , out processes , NumProcessRetries ) ;
7176
0 commit comments