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

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"