mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -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:
commit
cd6e8969d5
@ -225,6 +225,7 @@ function ToolbarDeleteButton({
|
||||
key="add"
|
||||
isDisabled={isDisabled}
|
||||
isLoading={isLoading}
|
||||
ouiaId="delete-button"
|
||||
spinnerAriaValueText={isLoading ? 'Loading' : undefined}
|
||||
component="button"
|
||||
onClick={() => {
|
||||
@ -240,6 +241,7 @@ function ToolbarDeleteButton({
|
||||
<Button
|
||||
variant="secondary"
|
||||
isLoading={isLoading}
|
||||
ouiaId="delete-button"
|
||||
spinnerAriaValueText={isLoading ? 'Loading' : undefined}
|
||||
aria-label={t`Delete`}
|
||||
onClick={() => toggleModal(true)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user