Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c0de050

Browse files
committedOct 31, 2024·
minor cleanup
1 parent 8d1f19c commit c0de050

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed
 

‎UiTests/HybridFlowUiTest/HybridFlowTest.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)
Please sign in to comment.