Skip to content

User input types unit test not reproducible using the same policy #6

Description

@noderat

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions