Merge pull request #9964 from tiagodread/update-ouiaid-relaunch-feature

Adding ouiaid to RelaunchDropdown.jsx

Adding testability to this component

Reviewed-by: Jake McDermott <yo@jakemcdermott.me>
This commit is contained in:
softwarefactory-project-zuul[bot] 2021-04-20 20:47:55 +00:00 committed by GitHub
commit fc2d877983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,7 @@ function ReLaunchDropDown({
const dropdownItems = [
<DropdownItem
ouiaId={`${ouiaId}-on`}
aria-label={i18n._(t`Relaunch on`)}
key="relaunch_on"
component="div"
@ -35,6 +36,7 @@ function ReLaunchDropDown({
</DropdownItem>,
<DropdownSeparator key="separator" />,
<DropdownItem
ouiaId={`${ouiaId}-all`}
key="relaunch_all"
aria-label={i18n._(t`Relaunch all hosts`)}
component="button"
@ -47,6 +49,7 @@ function ReLaunchDropDown({
</DropdownItem>,
<DropdownItem
ouiaId={`${ouiaId}-failed`}
key="relaunch_failed"
aria-label={i18n._(t`Relaunch failed hosts`)}
component="button"