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:
softwarefactory-project-zuul[bot] 2021-04-28 13:48:14 +00:00 committed by GitHub
commit cd6e8969d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)}