-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QE testing] form field selectors: align on using id
where possible to simplify QE tests
#443
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
priority/backlog
Higher priority than priority/awaiting-more-evidence.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Comments
id
where possible, backport QE-breaking changes to 2.1.2, follow up to fix QE testsid
where possible, backport QE-test-breaking changes to 2.1.2, follow up to fix QE tests
id
where possible, backport QE-test-breaking changes to 2.1.2, follow up to fix QE testsid
where possible, backport QE-test-breaking changes to 2.1.2 (selector attributes only), follow up to help fix QE tests
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. |
id
where possible, backport QE-test-breaking changes to 2.1.2 (selector attributes only), follow up to help fix QE testsid
where possible, follow up to help fix QE tests
This was referenced Sep 13, 2023
Closed
QE Requests (7 Sept 2023 - initially from #1336) :
|
ibolton336
added a commit
that referenced
this issue
Sep 15, 2023
@ibragins explained QE needs : - A consistent selector across the UI to identify kebab in toolbar, for instance id="toolbar-kebab" - A consistent selector across the UI to distinct, on a given table row between, between a "pencil" button and the "actions" kebab. There is no need to uniquely identify those selector by row, QE already has selectors for that purpose. We can see those IDs in action in current PR in applications-table-assessment.tsx. Meanwhile that cannot be easliy added to the legacy tables (PF4 or PF5 deprecated table) because we don't have access to the wrapper component. Therefore will have to wait for legacy table migration to be finished first. This applies to every page having a top kebab (Toolbar) and rows with several actions button/kebab: - [x] applications-table-assessment.tsx - [x] applications-table-analysis.tsx - [x] migration-waves.tsx On the MigrationWaves page, the deprecated dropdown has been replaced with PF5 version. #443 --------- Signed-off-by: Gilles Dubreuil <gdubreui@redhat.com> Co-authored-by: Ian Bolton <ibolton@redhat.com>
This issue has been marked 'good first issue' |
id
where possible, follow up to help fix QE testsid
where possible to simplify QE tests
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
priority/backlog
Higher priority than priority/awaiting-more-evidence.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Related to #198. Ideally we can fix both together.
For rationale, see the "Accessibility and QE selectors" section at the bottom of the description in #404. The main conclusions there are:
id
attribute on each form input in order to provide accessible labels without redundantaria-label
attributesaria-label
as a selector for QE tests since it is user-facing text that is subject to change or be removed (it is used by screen-readers for accessibility)id
selectors where possible and work with dev on what selector to use whenid
cannot be provided on a case-by-case basis. When this comes up it is likely a bug in PatternFly and we can provide a realid
once that bug is addressed.#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 newid
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.
The text was updated successfully, but these errors were encountered: