Skip to content

Commit 75ca3b9

Browse files
authored
Add successful login message (#146)
1 parent a25d001 commit 75ca3b9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Microsoft.PowerApps.TestEngine/TestInfra/PlaywrightTestInfraFunctions.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ public async Task HandleUserPasswordScreen(string selector, string value, string
301301
{
302302
PageRunAndWaitForNavigationOptions options = new PageRunAndWaitForNavigationOptions();
303303
options.UrlString = desiredUrl;
304-
304+
var logger = _singleTestInstanceState.GetLogger();
305305
ValidatePage();
306306

307307
try
@@ -319,9 +319,11 @@ await Page.RunAndWaitForNavigationAsync(async () =>
319319
}
320320
catch (TimeoutException)
321321
{
322-
_singleTestInstanceState.GetLogger().LogError("Timed out during login attempt. In order to confirm why this timed out, it may be beneficial to watch the output recording. Make sure that your timeout period is long enough, and that your credentials are correct.");
322+
logger.LogError("Timed out during login attempt. In order to determine why, it may be beneficial to view the output recording. Make sure that your login credentials are correct.");
323323
throw new TimeoutException();
324324
}
325+
326+
logger.LogDebug("Logged in successfully.");
325327
}
326328
}
327329
}

0 commit comments

Comments
 (0)