mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 13:39:27 -02:30
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:
@@ -26,6 +26,7 @@ function ReLaunchDropDown({
|
|||||||
|
|
||||||
const dropdownItems = [
|
const dropdownItems = [
|
||||||
<DropdownItem
|
<DropdownItem
|
||||||
|
ouiaId={`${ouiaId}-on`}
|
||||||
aria-label={i18n._(t`Relaunch on`)}
|
aria-label={i18n._(t`Relaunch on`)}
|
||||||
key="relaunch_on"
|
key="relaunch_on"
|
||||||
component="div"
|
component="div"
|
||||||
@@ -35,6 +36,7 @@ function ReLaunchDropDown({
|
|||||||
</DropdownItem>,
|
</DropdownItem>,
|
||||||
<DropdownSeparator key="separator" />,
|
<DropdownSeparator key="separator" />,
|
||||||
<DropdownItem
|
<DropdownItem
|
||||||
|
ouiaId={`${ouiaId}-all`}
|
||||||
key="relaunch_all"
|
key="relaunch_all"
|
||||||
aria-label={i18n._(t`Relaunch all hosts`)}
|
aria-label={i18n._(t`Relaunch all hosts`)}
|
||||||
component="button"
|
component="button"
|
||||||
@@ -47,6 +49,7 @@ function ReLaunchDropDown({
|
|||||||
</DropdownItem>,
|
</DropdownItem>,
|
||||||
|
|
||||||
<DropdownItem
|
<DropdownItem
|
||||||
|
ouiaId={`${ouiaId}-failed`}
|
||||||
key="relaunch_failed"
|
key="relaunch_failed"
|
||||||
aria-label={i18n._(t`Relaunch failed hosts`)}
|
aria-label={i18n._(t`Relaunch failed hosts`)}
|
||||||
component="button"
|
component="button"
|
||||||
|
|||||||
Reference in New Issue
Block a user