mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 20:00:43 -03:30
adds locators
This commit is contained in:
parent
b4243c6f03
commit
34d0595bab
@ -85,6 +85,7 @@ function HostListItem({
|
||||
<ExpandableRowContent>
|
||||
<DetailList gutter="sm">
|
||||
<Detail
|
||||
dataCy={`${host.name}-activity`}
|
||||
label={t`Activity`}
|
||||
value={
|
||||
recentJobs.length > 0 ? (
|
||||
|
||||
@ -12,6 +12,7 @@ const surveyData = {
|
||||
description: 'description for survey',
|
||||
spec: [
|
||||
{ question_name: 'Foo', type: 'text', default: 'Bar', variable: 'foo' },
|
||||
{ question_name: 'Bizz', type: 'text', default: 'bazz', variable: 'bizz' },
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
@ -25,6 +25,7 @@ function SurveyListItem({ canEdit, question, isChecked, onSelect, rowIndex }) {
|
||||
return (
|
||||
<Tr>
|
||||
<Td
|
||||
data-cy={`${question.variable}-select`}
|
||||
select={{
|
||||
rowIndex,
|
||||
isSelected: isChecked,
|
||||
@ -32,7 +33,11 @@ function SurveyListItem({ canEdit, question, isChecked, onSelect, rowIndex }) {
|
||||
}}
|
||||
dataLabel={t`Selected`}
|
||||
/>
|
||||
<Td id={`survey-list-item-${question.variable}`} dataLabel={t`Name`}>
|
||||
<Td
|
||||
data-cy={`${question.variable}-name`}
|
||||
id={`survey-list-item-${question.variable}`}
|
||||
dataLabel={t`Name`}
|
||||
>
|
||||
<>
|
||||
<Link
|
||||
to={`survey/edit?question_variable=${encodeURIComponent(
|
||||
@ -52,7 +57,9 @@ function SurveyListItem({ canEdit, question, isChecked, onSelect, rowIndex }) {
|
||||
)}
|
||||
</>
|
||||
</Td>
|
||||
<Td dataLabel={t`Type`}>{question.type}</Td>
|
||||
<Td data-cy={`${question.variable}-type`} dataLabel={t`Type`}>
|
||||
{question.type}
|
||||
</Td>
|
||||
<Td dataLabel={t`Default`}>
|
||||
{[question.type].includes('password') && (
|
||||
<span>{t`encrypted`.toUpperCase()}</span>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user