unit-tests icon indicating copy to clipboard operation
unit-tests copied to clipboard

User input types unit test not reproducible using the same policy

Open noderat opened this issue 3 years ago • 0 comments

The B2C_1A_Claim_UserInputTypes_All live demo and all unit tests that have a TextBox user input type can not have the exact same self asserted input display reproduced by using the Claim_UserInputTypes_All.xml policy definition.

How to reproduce: Deploy the sample pack's TrustFrameworkBase, TrustFrameworkLocalization, and TrustFrameworkExtensions and then find and ensure the api.selfasserted ContentDefinition page version is set to 2.1.7 using the AzureBlue template to match the version found in the unit tests as such:

<!-- Ensure api.selfasserted in the sample pack's TrustFrameworkBase.xml matches the following: -->
<ContentDefinitions>
  <ContentDefinition Id="api.selfasserted">
    <LoadUri>~/tenant/templates/AzureBlue/selfAsserted.cshtml</LoadUri>
    <RecoveryUri>~/common/default_page_error.html</RecoveryUri>
    <DataUri>urn:com:microsoft:aad:b2c:elements:contract:selfasserted:2.1.7</DataUri>
  </ContentDefinition>
</ContentDefinitions>

This results in the following differences (unit test on the right, local on left), most notably the <label> element is completely missing on TextBox content types: image

Can the TrustFrameworkBase.xml, TrustFrameworkLocalization.xml, TrustFrameworkExtensions.xml files, any template modifications or other configuration needed to reproduce these unit tests 1:1 please be added to this repository?

noderat avatar Jul 29 '22 15:07 noderat