Skip to content

Commit da849d0

Browse files
authored
Remove dupe ropc b2c tests (#5487)
1 parent b111677 commit da849d0

File tree

2 files changed

+8
-69
lines changed

2 files changed

+8
-69
lines changed

tests/Microsoft.Identity.Test.Integration.netcore/HeadlessTests/B2CUsernamePasswordIntegrationTests.cs

Lines changed: 0 additions & 69 deletions
This file was deleted.

tests/Microsoft.Identity.Test.Integration.netcore/HeadlessTests/UsernamePasswordIntegrationTests.NetFwk.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,14 @@ private async Task RunB2CHappyPathTestAsync(LabResponse labResponse, string fede
366366
Assert.IsNotNull(authResult.IdToken);
367367
AssertCcsRoutingInformationIsNotSent(factory);
368368

369+
var acc = (await msalPublicClient.GetAccountsAsync().ConfigureAwait(false)).Single();
370+
var claimsPrincipal = acc.GetTenantProfiles().Single().ClaimsPrincipal;
371+
372+
Assert.AreNotEqual(TokenResponseHelper.NullPreferredUsernameDisplayLabel, acc.Username);
373+
Assert.IsNotNull(claimsPrincipal.FindFirst("Name"));
374+
Assert.IsNotNull(claimsPrincipal.FindFirst("nbf"));
375+
Assert.IsNotNull(claimsPrincipal.FindFirst("exp"));
376+
369377
// If test fails with "user needs to consent to the application, do an interactive request" error,
370378
// Do the following:
371379
// 1) Add in code to pull the user's password, and put a breakpoint there.

0 commit comments

Comments
 (0)