Form id and form item id value changes according to translate

Bug #2059108 reported by Numan Menekşe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
skyline console
New
Undecided
Unassigned

Bug Description

The id values of the form and the items in the form change according to the selected language. This is because the "get name()" function uses "t()" to specify the value. When we write a test, we get an error for this reason.

It should be: The id value should be constant.

Revision history for this message
zhangjingwei (wuwu-wuwu) wrote :

The id of the form item in the form is a constant, which is form-item-col-{name}, where name comes from the name set in formItem. Just use constants when setting the name. The label of the form uses "t()" for Display form item names in different languages.

When writing e2e use cases, you can use the formXXX command and directly use the name of formItem, such as: formInput('name', name)

You can refer to the documentation:
https://opendev.org/openstack/skyline-console/src/branch/master/docs/en/test/3-1-E2E-form-operation.md

Revision history for this message
Numan Menekşe (numanmenekse) wrote (last edit ):

The form type you show in the screenshot is Step Form. When we check, we get this error in Modal Form.

Revision history for this message
Numan Menekşe (numanmenekse) wrote :

The form type you show in the screenshot is Step Form. When we check, we get this error in Modal Form.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.