konveyor / tackle2-ui

Tackle (2nd generation) UI component.
Apache License 2.0
8 stars 38 forks source link

[QE testing] form field selectors: align on using `id` where possible to simplify QE tests #443

Open mturley opened 1 year ago

mturley commented 1 year ago

Related to https://github.com/konveyor/tackle2-ui/issues/198. Ideally we can fix both together.

For rationale, see the "Accessibility and QE selectors" section at the bottom of the description in https://github.com/konveyor/tackle2-ui/pull/404. The main conclusions there are:

https://github.com/konveyor/tackle2-ui/pull/404 included changes to support the above for the Proxy settings form and the Identity form (the Create/Edit Credential modal in the Admin view). That PR includes heavy refactoring that should not be backported to 2.1.x, but we should create a separate PR to backport matching id / aria-label changes to 2.1.2 once that release branch exists. We should then make sure we follow up to help transition relevant QE tests to use the new id selectors.

As more forms are refactored to use the new react-hook-form components, we will also be aligning their field attributes in a similar way, and any of those that are merged before 2.1.2 code freeze should also have their selector changes backported as part of this issue.

mturley commented 1 year ago

PRs containing changes that will break QE tests, which should have custom backport PRs to align the 2.1.2 branch to use their new field selectors:

Please edit this comment to add more if you identify them.

gildub commented 1 year ago

QE Requests (7 Sept 2023 - initially from https://github.com/konveyor/tackle2-ui/issues/1336) :

konveyor-ci-bot[bot] commented 3 weeks ago

This issue has been marked 'good first issue' Please, make sure it aligns with the criteria found here