Treat configuration/feature-flag-driven logic as potentially different between tests and runtime, and standardize how you branch on it.

Apply this by: 1) Verify config-derived outputs with real environment values

2) Prefer the standard feature-flag mechanism for UI

3) Keep conditional UI layout consistent

Example pattern (feature-controlled UI):

<IfFeatureEnabled feature='classroom-mode'>
  <Spacer size='m' />
  <ClassroomMode
    isClassroomAccount={isClassroomAccount}
    updateIsClassroomAccount={updateIsClassroomAccount}
  />
</IfFeatureEnabled>