mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
Merge pull request #10034 from akus062381/add-locators-template-list-jsx
add ouiaId to toolbar delete button In working on fixing a broken e2e test, I discovered an element that needed a better locator in order to allow testability. Reviewed-by: Alex Corey <Alex.swansboro@gmail.com> Reviewed-by: Tiago Góes <tiago.goes2009@gmail.com>
This commit is contained in:
@@ -225,6 +225,7 @@ function ToolbarDeleteButton({
|
|||||||
key="add"
|
key="add"
|
||||||
isDisabled={isDisabled}
|
isDisabled={isDisabled}
|
||||||
isLoading={isLoading}
|
isLoading={isLoading}
|
||||||
|
ouiaId="delete-button"
|
||||||
spinnerAriaValueText={isLoading ? 'Loading' : undefined}
|
spinnerAriaValueText={isLoading ? 'Loading' : undefined}
|
||||||
component="button"
|
component="button"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@@ -240,6 +241,7 @@ function ToolbarDeleteButton({
|
|||||||
<Button
|
<Button
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
isLoading={isLoading}
|
isLoading={isLoading}
|
||||||
|
ouiaId="delete-button"
|
||||||
spinnerAriaValueText={isLoading ? 'Loading' : undefined}
|
spinnerAriaValueText={isLoading ? 'Loading' : undefined}
|
||||||
aria-label={t`Delete`}
|
aria-label={t`Delete`}
|
||||||
onClick={() => toggleModal(true)}
|
onClick={() => toggleModal(true)}
|
||||||
|
|||||||
Reference in New Issue
Block a user