Description
If the instance has been configured to use UI15 or has disabled some UI16 features, users cannot create ATF test steps that have Reference fields (Impersonate Step - User field) or Glide Lists (Create User Step - Roles / Groups fields).
The following error can be observed in the Console:
Uncaught Error: [$injector:unpr] http://errors.angularjs.org/1.4.8/$injector/unpr?p0=i18nProvider%20%3C-%20i18n
Steps to Reproduce
New York and up
1) UI 15:
Ex: Open "Settings" (Gear icon), then at top-right corner of the modal, click "Switch to UI15"
2) Some UI 16 features disabled:
Ex: Set sys_properties "glide.ui16.live_forms.enabled" = false
Glide Lists:
- Navigate to ATF > Tests
- Click on "Add Test Step", and choose the test step "Create a User" from the 'Server' category.
- Click on either Roles or Groups lock icon to unlock it to add roles and groups
- You will see that the lists do not unlock/expand
- In the browser (e.g.: Chrome) Right-click and choose Inspect and go to the browser console tab. Uou will see the below console error:
Uncaught Error: [$injector:unpr] http://errors.angularjs.org/1.4.8/$injector/unpr?p0=i18nProvider%20%3C-%20i18n
Reference Fields:
- Navigate to ATF > Tests
- Click on "Add Test Step", and choose the test step "Impersonate" from the 'Server' category.
- Click on the Magnifying glass of the User reference field
- Note that the magnifying glass does nothing.
- In the browser (e.g.: Chrome) Right-click and choose Inspect and go to the browser console tab. Uou will see the below console error:
Uncaught Error: [$injector:unpr] http://errors.angularjs.org/1.4.8/$injector/unpr?p0=i18nProvider%20%3C-%20i18n
at angular_includes_1.4.jsx?v=02-05-2020_1535:8
at angular_includes_1.4.jsx?v=02-05-2020_1535:43
at Object.d [as get] (angular_includes_1.4.jsx?v=02-05-2020_1535:41)
at angular_includes_1.4.jsx?v=02-05-2020_1535:43
at Object.d [as get] (angular_includes_1.4.jsx?v=02-05-2020_1535:41)
at element-mapping-v2.min.jsx?v=02-05-2020_1535&sysparm_substitute=false:102
at runAfterPageLoadedEvents (js_includes_doctype.jsx?v=02-05-2020_1535&lp=Mon_Feb_17_03_55_12_PST_2020&c=6_108:575)
Workaround
After carefully considering the severity and frequency of this problem, and risk of attempting a fix, it has been decided to not address this issue in any current or future releases. We do not make these decisions lightly, and we apologize for any inconvenience.
However, you can use the following workaround:
- As user with admin role, navigate to 'sys_properties.list'.
- Filter for the System Property named "glide.element_mapping.enable_old_version".
- Set its value to true.
- Attempt to create tests and steps again.
Related Problem: PRB1388737