diff --git a/awx/ui_next/src/components/ExecutionEnvironmentDetail/ExecutionEnvironmentDetail.js b/awx/ui_next/src/components/ExecutionEnvironmentDetail/ExecutionEnvironmentDetail.js index d59097310f..f6c2a02d31 100644 --- a/awx/ui_next/src/components/ExecutionEnvironmentDetail/ExecutionEnvironmentDetail.js +++ b/awx/ui_next/src/components/ExecutionEnvironmentDetail/ExecutionEnvironmentDetail.js @@ -30,6 +30,7 @@ function ExecutionEnvironmentDetail({ virtualEnvironment, verifyMissingVirtualEnv, helpText, + dataCy, }) { const config = useConfig(); const docsLink = `${getDocsBaseUrl( @@ -51,7 +52,7 @@ function ExecutionEnvironmentDetail({ } helpText={helpText} - dataCy="execution-environment-detail" + dataCy={dataCy} /> ); } @@ -89,7 +90,7 @@ function ExecutionEnvironmentDetail({ } - dataCy="missing-execution-environment-detail" + dataCy={`missing-${dataCy}`} /> ); } @@ -113,7 +114,7 @@ function ExecutionEnvironmentDetail({ } - dataCy="execution-environment-detail" + dataCy={dataCy} /> ); } @@ -127,6 +128,7 @@ ExecutionEnvironmentDetail.propTypes = { virtualEnvironment: string, verifyMissingVirtualEnv: bool, helpText: string, + dataCy: string, }; ExecutionEnvironmentDetail.defaultProps = { @@ -135,6 +137,7 @@ ExecutionEnvironmentDetail.defaultProps = { virtualEnvironment: '', verifyMissingVirtualEnv: true, helpText: '', + dataCy: 'execution-environment-detail', }; export default ExecutionEnvironmentDetail; diff --git a/awx/ui_next/src/components/JobList/JobListItem.js b/awx/ui_next/src/components/JobList/JobListItem.js index 40feb84a90..e244c08ab9 100644 --- a/awx/ui_next/src/components/JobList/JobListItem.js +++ b/awx/ui_next/src/components/JobList/JobListItem.js @@ -124,6 +124,7 @@ function JobListItem({ )} @@ -214,6 +215,7 @@ function JobListItem({ )} {credentials && credentials.length > 0 && ( diff --git a/awx/ui_next/src/components/LaunchButton/ReLaunchDropDown.js b/awx/ui_next/src/components/LaunchButton/ReLaunchDropDown.js index 28d969e5fa..c5fac44a4f 100644 --- a/awx/ui_next/src/components/LaunchButton/ReLaunchDropDown.js +++ b/awx/ui_next/src/components/LaunchButton/ReLaunchDropDown.js @@ -15,7 +15,7 @@ function ReLaunchDropDown({ isPrimary = false, handleRelaunch, isLaunching, - + id = 'relaunch-job', ouiaId, }) { const [isOpen, setIsOpen] = useState(false); @@ -75,7 +75,7 @@ function ReLaunchDropDown({ toggleIndicator={null} onToggle={onToggle} aria-label={t`relaunch jobs`} - id="relaunch_jobs" + id={id} isPrimary > {t`Relaunch`} @@ -97,7 +97,7 @@ function ReLaunchDropDown({ toggleIndicator={null} onToggle={onToggle} aria-label={t`relaunch jobs`} - id="relaunch_jobs" + id={id} >