-
Notifications
You must be signed in to change notification settings - Fork 284
Fix e2e auth logic + add namespace a11y playwright tests #3144
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
base: main
Are you sure you want to change the base?
Fix e2e auth logic + add namespace a11y playwright tests #3144
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: vyncent-t The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
cb5bcc1
to
3972d6b
Compare
96d736c
to
f3a977d
Compare
f3a977d
to
7303bd1
Compare
7303bd1
to
89d528a
Compare
@@ -36,6 +36,7 @@ export function CreateResourceButton(props: CreateResourceButtonProps) { | |||
errorMessage={errorMessage} | |||
onEditorChanged={() => setErrorMessage('')} | |||
title={t('translation|Create {{ name }}', { name })} | |||
aria-label={t('translation|Create resource button')} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- This should be fixed inside EditorDialog to use the title. Because EditorDialog is used in a number of other places, and it has different states to consider where the label should go.
- Using the same name as the title would be better, because it's more correct and we already have translations for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work.
I just requested one change to the aria-label to use the existing title translation.
89d528a
to
93e7825
Compare
…e button Signed-off-by: Vincent T <[email protected]>
since we now use a multi cluster structure to run our tests, the cluster navigation step must be its own full nav step, different from navigateToPage, if it is tied to an auth step. Signed-off-by: Vincent T <[email protected]>
93e7825
to
0161e01
Compare
Description
This PR improves accessibility testing coverage and reliability of Playwright E2E tests in the project.
Note: this also fixes some e2e test failures for my other branches, once this is merged in I will drop the duplicates in the other branches.
Accessibility Enhancements
@axe-core/playwright
integration to the Namespaces Playwright test to perform automated A11Y checks.aria-label
to ensure compliance with screen reader standards.Navigation & Auth Logic Improvements
(Previously, navigation during multi-cluster testing was unreliable and prone to hanging or timing out due to race conditions and cluster token loading delays.)
Notes