From b73f023fa8b3dba4f9bcb0ae455597e97c8e035f Mon Sep 17 00:00:00 2001 From: christianpiske Date: Wed, 11 Dec 2024 18:20:36 +0100 Subject: [PATCH] added the last test-ids --- src/web/components/powerfilter/applyoverridesgroup.jsx | 1 + src/web/components/powerfilter/booleanfiltergroup.jsx | 1 + src/web/components/powerfilter/compliancelevelsgroup.jsx | 4 ++++ src/web/components/powerfilter/minqodgroup.jsx | 1 + src/web/components/powerfilter/powerfilter.jsx | 7 +++++++ src/web/components/powerfilter/relationselector.jsx | 1 + src/web/components/powerfilter/resultsperpagegroup.jsx | 2 +- src/web/components/powerfilter/severitylevelsgroup.jsx | 5 +++++ src/web/components/powerfilter/severityvaluesgroup.jsx | 1 + src/web/components/powerfilter/solutiontypegroup.jsx | 6 ++++++ src/web/components/powerfilter/sortbygroup.jsx | 3 +++ src/web/components/powerfilter/tasktrendgroup.jsx | 1 + src/web/components/powerfilter/ticketstatusgroup.jsx | 1 + src/web/components/qod/qod.jsx | 2 +- 14 files changed, 34 insertions(+), 2 deletions(-) diff --git a/src/web/components/powerfilter/applyoverridesgroup.jsx b/src/web/components/powerfilter/applyoverridesgroup.jsx index 4f52a66854..f9b895b370 100644 --- a/src/web/components/powerfilter/applyoverridesgroup.jsx +++ b/src/web/components/powerfilter/applyoverridesgroup.jsx @@ -36,6 +36,7 @@ const ApplyOverridesGroup = ({ noValue={0} convert={parseInt} onChange={onChange} + data-testid="apply-overrides-yesnoradio" /> ); diff --git a/src/web/components/powerfilter/booleanfiltergroup.jsx b/src/web/components/powerfilter/booleanfiltergroup.jsx index 13d58a4b4b..f911bb1066 100644 --- a/src/web/components/powerfilter/booleanfiltergroup.jsx +++ b/src/web/components/powerfilter/booleanfiltergroup.jsx @@ -30,6 +30,7 @@ const BooleanFilterGroup = ({filter, name, title, onChange}) => { noValue={0} convert={parseInt} onChange={onChange} + data-testid="boolean-filter-yesnoradio" /> ); diff --git a/src/web/components/powerfilter/compliancelevelsgroup.jsx b/src/web/components/powerfilter/compliancelevelsgroup.jsx index 6dde65d727..b44542d913 100644 --- a/src/web/components/powerfilter/compliancelevelsgroup.jsx +++ b/src/web/components/powerfilter/compliancelevelsgroup.jsx @@ -67,24 +67,28 @@ const ComplianceLevelsFilterGroup = ({ checked={complianceLevels.includes('y')} name="y" onChange={handleComplianceChange} + data-testid="compliance-checkbox-yes" /> diff --git a/src/web/components/powerfilter/minqodgroup.jsx b/src/web/components/powerfilter/minqodgroup.jsx index 7d6b574f0a..8e1bbdad3d 100644 --- a/src/web/components/powerfilter/minqodgroup.jsx +++ b/src/web/components/powerfilter/minqodgroup.jsx @@ -31,6 +31,7 @@ const MinQodGroup = ({qod, onChange, filter, name = 'min_qod'}) => { step="1" value={qod} onChange={onChange} + data-testid="min-qod" /> % diff --git a/src/web/components/powerfilter/powerfilter.jsx b/src/web/components/powerfilter/powerfilter.jsx index ebc64ad068..64f5e9cc7b 100644 --- a/src/web/components/powerfilter/powerfilter.jsx +++ b/src/web/components/powerfilter/powerfilter.jsx @@ -192,12 +192,14 @@ class PowerFilter extends React.Component { value={userFilterString} onKeyDown={this.handleUserFilterKeyPress} onChange={this.handleValueChange} + data-testid="powerfilter-text" /> {onRemoveClick && ( @@ -207,6 +209,7 @@ class PowerFilter extends React.Component { onClick={ isDefined(filter) ? this.handleRemoveClick : undefined } + data-testid="powefilter-delete" /> )} {onResetClick && ( @@ -216,6 +219,7 @@ class PowerFilter extends React.Component { onClick={ isDefined(filter) ? this.handleResetClick : undefined } + data-testid="powerfilter-reset" /> )} @@ -223,6 +227,7 @@ class PowerFilter extends React.Component { title={_('Help: Powerfilter')} page="web-interface" anchor="filtering-the-page-content" + data-testid="powerfilter-help" /> {onEditClick && ( @@ -230,6 +235,7 @@ class PowerFilter extends React.Component { title={_('Edit Filter')} disabled={!isDefined(filter) || isLoading} onClick={isDefined(filter) ? onEditClick : undefined} + data-testid="powerfilter-edit" /> )} @@ -245,6 +251,7 @@ class PowerFilter extends React.Component { : DEFAULT_FILTER_ID } onChange={this.handleNamedFilterChange} + data-testid="powefilter-select" /> )} diff --git a/src/web/components/powerfilter/relationselector.jsx b/src/web/components/powerfilter/relationselector.jsx index 77dd65a993..fc7d16759f 100644 --- a/src/web/components/powerfilter/relationselector.jsx +++ b/src/web/components/powerfilter/relationselector.jsx @@ -18,6 +18,7 @@ const RelationSelector = ({relation, onChange}) => { const [_] = useTranslation(); return (