Skip to content

Commit fa3aa7b

Browse files
committed
updating for help with debugging
1 parent 871809c commit fa3aa7b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

UiTests/Common/UiTestHelpers.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
using Azure.Core;
5-
using Azure.Security.KeyVault.Secrets;
6-
using Microsoft.Playwright;
4+
using System;
5+
using System.Collections.Generic;
76
using System.Diagnostics;
87
using System.Management;
98
using System.Runtime.Versioning;
@@ -34,7 +33,7 @@ public static async Task NavigateToWebApp(string uri, IPage page)
3433
await Task.Delay(1000);
3534
InitialConnectionRetryCount--;
3635
if (InitialConnectionRetryCount == 0)
37-
{ throw; }
36+
{ throw; }
3837
}
3938
}
4039
}
@@ -598,4 +597,3 @@ public ProcessStartOptions(
598597
}
599598
}
600599
}
601-

UiTests/UiTests/MultiApiTest.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public class MultiApiTest : IClassFixture<InstallPlaywrightBrowserFixture>
2323
private const string SignOutPageUriPath = @"/MicrosoftIdentity/Account/SignedOut";
2424
private const uint ClientPort = 44321;
2525
private const string TraceFileClassName = "OpenIDConnect";
26-
private readonly LocatorAssertionsToBeVisibleOptions _assertVisibleOptions = new() { Timeout = 5000 };
26+
private const uint NumProcessRetries = 3;
27+
private readonly LocatorAssertionsToBeVisibleOptions _assertVisibleOptions = new() { Timeout = 15000 };
2728
private readonly string _sampleAppPath = "3-WebApp-multi-APIs" + Path.DirectorySeparatorChar.ToString();
2829
private readonly string _testAssemblyLocation = typeof(MultiApiTest).Assembly.Location;
2930
private readonly ITestOutputHelper _output;
@@ -61,11 +62,11 @@ public async Task ChallengeUser_MicrosoftIdFlow_LocalApp_ValidEmailPasswordCreds
6162
// The delay before starting client prevents transient devbox issue where the client fails to load the first time after rebuilding
6263
var clientProcessOptions = new ProcessStartOptions(_testAssemblyLocation, _sampleAppPath, TC.s_oidcWebAppExe, clientEnvVars);
6364

64-
bool areProcessesRunning = TH.StartAndVerifyProcessesAreRunning([clientProcessOptions], out processes);
65+
bool areProcessesRunning = TH.StartAndVerifyProcessesAreRunning([clientProcessOptions], out processes, NumProcessRetries);
6566

6667
if (!areProcessesRunning)
6768
{
68-
_output.WriteLine("Process not started after 3 attempts.");
69+
_output.WriteLine($"Process not started after {NumProcessRetries} attempts.");
6970
StringBuilder runningProcesses = new StringBuilder();
7071
foreach (var process in processes)
7172
{

UiTests/UiTests/MultipleApiUiTest.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
<ItemGroup>
2828
<ProjectReference Include="..\Common\Common.csproj" />
29+
<ProjectReference Include="..\..\3-WebApp-multi-APIs\WebApp-OpenIDConnect-DotNet.csproj" />
2930
</ItemGroup>
3031

3132
</Project>

0 commit comments

Comments
 (0)