@@ -24,7 +24,7 @@ public class HybridFlowTest : IClassFixture<InstallPlaywrightBrowserFixture>
24
24
private const string TraceFileClassName = "OpenIDConnect-HybridFlow" ;
25
25
private const uint NumProcessRetries = 3 ;
26
26
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" ;
28
28
private readonly LocatorAssertionsToBeVisibleOptions _assertVisibleOptions = new ( ) { Timeout = 25000 } ;
29
29
private readonly string _sampleAppPath = "2-WebApp-graph-user" + Path . DirectorySeparatorChar + "2-5-HybridFlow" + Path . DirectorySeparatorChar . ToString ( ) ;
30
30
private readonly string _testAppsettingsPath = "UiTests" + Path . DirectorySeparatorChar + "HybridFlowUiTest" + Path . DirectorySeparatorChar . ToString ( ) + TC . AppSetttingsDotJson ;
@@ -52,7 +52,7 @@ public async Task ChallengeUser_MicrosoftIdFlow_LocalApp_ValidEmailPasswordCreds
52
52
// Arrange Playwright setup, to see the browser UI set Headless = false.
53
53
const string TraceFileName = TraceFileClassName + "_LoginLogout" ;
54
54
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 } ) ;
56
56
IBrowserContext context = await browser . NewContextAsync ( new BrowserNewContextOptions { IgnoreHTTPSErrors = true } ) ;
57
57
await context . Tracing . StartAsync ( new ( ) { Screenshots = true , Snapshots = true , Sources = true } ) ;
58
58
IPage page = await context . NewPageAsync ( ) ;
@@ -65,7 +65,12 @@ public async Task ChallengeUser_MicrosoftIdFlow_LocalApp_ValidEmailPasswordCreds
65
65
66
66
// Start the web app and api processes.
67
67
// 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
+ ) ;
69
74
70
75
bool areProcessesRunning = UiTestHelpers . StartAndVerifyProcessesAreRunning ( [ clientProcessOptions ] , out processes , NumProcessRetries ) ;
71
76
0 commit comments