diff --git a/src/web/components/bar/compliancebar.jsx b/src/web/components/bar/compliancebar.jsx
index 9f17e89fc9..158a101e74 100644
--- a/src/web/components/bar/compliancebar.jsx
+++ b/src/web/components/bar/compliancebar.jsx
@@ -30,7 +30,7 @@ const ComplianceBar = ({compliance, toolTip}) => {
const toolTipText = isDefined(toolTip) ? toolTip : title;
return (
-
+
{title}
);
diff --git a/src/web/components/bar/compliancestatusbar.jsx b/src/web/components/bar/compliancestatusbar.jsx
index 16917b57f2..0de33f3000 100644
--- a/src/web/components/bar/compliancestatusbar.jsx
+++ b/src/web/components/bar/compliancestatusbar.jsx
@@ -30,6 +30,7 @@ const ComplianceStatusBar = ({complianceStatus}) => {
progress={complianceStatus}
background={Theme.statusRunGreen}
boxBackground={boxBackground}
+ data-testid="progress-bar"
>
{text}
diff --git a/src/web/components/bar/menubar.jsx b/src/web/components/bar/menubar.jsx
index 388586c6b0..e3cd63f36a 100644
--- a/src/web/components/bar/menubar.jsx
+++ b/src/web/components/bar/menubar.jsx
@@ -114,137 +114,140 @@ const MenuBar = ({isLoggedIn}) => {
+
{may_op_scans && (
-
diff --git a/src/web/components/bar/severitybar.jsx b/src/web/components/bar/severitybar.jsx
index 3fa6dca090..676e593242 100644
--- a/src/web/components/bar/severitybar.jsx
+++ b/src/web/components/bar/severitybar.jsx
@@ -60,7 +60,7 @@ const SeverityBar = ({severity, toolTip}) => {
const toolTipText = isDefined(toolTip) ? toolTip : title;
return (
-
+
{text}
);
diff --git a/src/web/components/bar/statusbar.jsx b/src/web/components/bar/statusbar.jsx
index fe8371e8bc..bc35ddb1e1 100644
--- a/src/web/components/bar/statusbar.jsx
+++ b/src/web/components/bar/statusbar.jsx
@@ -79,7 +79,7 @@ const StatusBar = ({status = 'Unknown', progress = '0'}) => {
: getTranslatableTaskStatus(status);
return (
-
+
{text}
);
diff --git a/src/web/components/bar/toolbar.jsx b/src/web/components/bar/toolbar.jsx
index eb439147eb..564f3257ef 100644
--- a/src/web/components/bar/toolbar.jsx
+++ b/src/web/components/bar/toolbar.jsx
@@ -18,6 +18,7 @@ const Toolbar = props => {
align={['space-between', 'start']}
{...props}
className="toolbar"
+ data-testid="toolbar"
/>
);
diff --git a/src/web/components/certinfo/certinfo.jsx b/src/web/components/certinfo/certinfo.jsx
index 926d691d2c..f7e7c923d6 100644
--- a/src/web/components/certinfo/certinfo.jsx
+++ b/src/web/components/certinfo/certinfo.jsx
@@ -29,9 +29,9 @@ const CertInfo = ({info}) => {
-
- {_('Activation')}
-
+
+ {_('Activation')}
+
{isDefined(activationTime) ? (
) : (
@@ -40,9 +40,9 @@ const CertInfo = ({info}) => {
-
- {_('Expiration')}
-
+
+ {_('Expiration')}
+
{isDefined(expirationTime) ? (
) : (
@@ -51,14 +51,14 @@ const CertInfo = ({info}) => {
-
- {_('MD5 Fingerprint')}
- {md5_fingerprint}
+
+ {_('MD5 Fingerprint')}
+ {md5_fingerprint}
-
- {_('Issuer')}
- {issuer}
+
+ {_('Issuer')}
+ {issuer}
diff --git a/src/web/components/comment/comment.jsx b/src/web/components/comment/comment.jsx
index 45b69547d9..d56c6d5319 100644
--- a/src/web/components/comment/comment.jsx
+++ b/src/web/components/comment/comment.jsx
@@ -17,7 +17,7 @@ const Comment = ({text, children}) => {
if (!isDefined(text)) {
return null;
}
- return {text}
;
+ return {text}
;
};
Comment.propTypes = {
diff --git a/src/web/components/dashboard/controls.jsx b/src/web/components/dashboard/controls.jsx
index 72ff0f9eb5..8d0f4b1a30 100644
--- a/src/web/components/dashboard/controls.jsx
+++ b/src/web/components/dashboard/controls.jsx
@@ -119,10 +119,12 @@ export class DashboardControls extends React.Component {
: _('Dashboard limit reached')
}
onClick={canAdd ? this.handleNewClick : undefined}
+ data-testid="add_new_dashboard"
/>
{showNewDialog && (
@@ -136,6 +138,7 @@ export class DashboardControls extends React.Component {
}}
onClose={this.handleNewDialogClose}
onSave={this.handleNewDisplay}
+ data-testid="save_dialog_add"
>
{({values, onValueChange}) => (
@@ -145,6 +148,7 @@ export class DashboardControls extends React.Component {
value={values.displayId}
width="auto"
onChange={onValueChange}
+ data-testid="display_id"
/>
)}
diff --git a/src/web/components/dialog/button.jsx b/src/web/components/dialog/button.jsx
index 35aa3ab355..d0109bce47 100644
--- a/src/web/components/dialog/button.jsx
+++ b/src/web/components/dialog/button.jsx
@@ -11,7 +11,7 @@ import Button from 'web/components/form/button';
import Theme from 'web/utils/theme';
-const DialogButton = styled(({loading, ...props}) => )`
+const DialogButton = styled(({loading, ...props}) => )`
border: 1px solid ${Theme.mediumGray};
color: ${props => (props.loading ? 'rgba(0, 0, 0, 0.0)' : Theme.white)};
background: ${props =>
diff --git a/src/web/components/dialog/closebutton.jsx b/src/web/components/dialog/closebutton.jsx
index 18bf8b11fe..9eb5e00b47 100644
--- a/src/web/components/dialog/closebutton.jsx
+++ b/src/web/components/dialog/closebutton.jsx
@@ -43,6 +43,7 @@ const CloseButton = ({title = _('Close'), size = 'medium', ...props}) => {
return (
{
return (
-
-
+
+
{content}
{({close, moveProps}) => (
{children({
close: this.handleClose,
diff --git a/src/web/components/dialog/error.jsx b/src/web/components/dialog/error.jsx
index dee7bf888c..00a72d7419 100644
--- a/src/web/components/dialog/error.jsx
+++ b/src/web/components/dialog/error.jsx
@@ -42,9 +42,9 @@ const DialogError = ({error, onCloseClick}) => {
return null;
}
return (
-
+
{error}
-
+
);
};
diff --git a/src/web/components/dialog/errordialog.jsx b/src/web/components/dialog/errordialog.jsx
index fd0f9ef0fd..3cbb00ffb5 100644
--- a/src/web/components/dialog/errordialog.jsx
+++ b/src/web/components/dialog/errordialog.jsx
@@ -20,8 +20,8 @@ const DEFAULT_DIALOG_WIDTH = '400px';
const ErrorDialogContent = ({moveprops, text, title, buttonTitle, close}) => {
return (
-
-
+
+
{text}
@@ -48,6 +48,7 @@ const ErrorDialog = ({
diff --git a/src/web/components/icon/arrowicon.jsx b/src/web/components/icon/arrowicon.jsx
index a2b97cfe53..2e1907c9ce 100644
--- a/src/web/components/icon/arrowicon.jsx
+++ b/src/web/components/icon/arrowicon.jsx
@@ -44,7 +44,7 @@ const ArrowIcon = ({down = false, isLoading = false, size, ...props}) => {
icon = ;
}
return (
-
+
{icon}
);
diff --git a/src/web/components/icon/cpeicon.jsx b/src/web/components/icon/cpeicon.jsx
index 0685c45fb3..e2828ca94d 100644
--- a/src/web/components/icon/cpeicon.jsx
+++ b/src/web/components/icon/cpeicon.jsx
@@ -18,7 +18,7 @@ const CpeIcon = ({name, ...props}) => {
const icon = isDefined(cpe) ? cpe.icon : 'cpe/other.svg';
- return ;
+ return ;
};
CpeIcon.propTypes = {
diff --git a/src/web/components/icon/deleteicon.jsx b/src/web/components/icon/deleteicon.jsx
index 3075a22362..1cd8896df6 100644
--- a/src/web/components/icon/deleteicon.jsx
+++ b/src/web/components/icon/deleteicon.jsx
@@ -29,7 +29,7 @@ const DeleteIcon = ({selectionType, title, ...props}) => {
title = _('Delete all filtered');
}
}
- return ;
+ return ;
};
DeleteIcon.propTypes = {
diff --git a/src/web/components/icon/detailsicon.jsx b/src/web/components/icon/detailsicon.jsx
index 415cba00b2..f1c8e2b1a0 100644
--- a/src/web/components/icon/detailsicon.jsx
+++ b/src/web/components/icon/detailsicon.jsx
@@ -11,7 +11,7 @@ import Icon from './svg/details.svg';
const DetailsIcon = props => (
-
+
);
diff --git a/src/web/components/icon/exporticon.jsx b/src/web/components/icon/exporticon.jsx
index 00ac016660..3b79fe8573 100644
--- a/src/web/components/icon/exporticon.jsx
+++ b/src/web/components/icon/exporticon.jsx
@@ -27,7 +27,7 @@ const ExportIcon = ({selectionType, title, ...other}) => {
} else if (selectionType === SelectionType.SELECTION_FILTER) {
download_title = _('Export all filtered');
}
- return ;
+ return ;
};
ExportIcon.propTypes = {
diff --git a/src/web/components/icon/foldstateicon.jsx b/src/web/components/icon/foldstateicon.jsx
index 0fef7314d0..929f66a4df 100644
--- a/src/web/components/icon/foldstateicon.jsx
+++ b/src/web/components/icon/foldstateicon.jsx
@@ -21,10 +21,10 @@ const FoldStateIcon = ({foldState, ...props}) => {
foldState === FoldState.FOLDING_START;
if (folded) {
- return ;
+ return ;
}
- return ;
+ return ;
};
FoldStateIcon.propTypes = {
diff --git a/src/web/components/icon/manualicon.jsx b/src/web/components/icon/manualicon.jsx
index 705bb2cf64..b44eeca933 100644
--- a/src/web/components/icon/manualicon.jsx
+++ b/src/web/components/icon/manualicon.jsx
@@ -15,7 +15,7 @@ import HelpIcon from './helpicon';
const ManualIcon = ({anchor, page, searchTerm, ...props}) => {
return (
-
+
);
};
diff --git a/src/web/components/icon/trashicon.jsx b/src/web/components/icon/trashicon.jsx
index 71cfde96f9..b0d9b25c47 100644
--- a/src/web/components/icon/trashicon.jsx
+++ b/src/web/components/icon/trashicon.jsx
@@ -25,7 +25,7 @@ const TrashIcon = ({selectionType, title, ...other}) => {
title = _('Move all filtered to trashcan');
}
}
- return ;
+ return ;
};
TrashIcon.propTypes = {
diff --git a/src/web/components/img/greenbone.jsx b/src/web/components/img/greenbone.jsx
index b1f5c84dfb..2f48f4d3cd 100644
--- a/src/web/components/img/greenbone.jsx
+++ b/src/web/components/img/greenbone.jsx
@@ -9,7 +9,7 @@ import React from 'react';
import GbLogo from 'web/components/icon/svg/greenbone.svg?url';
const GreenboneLogo = props => (
-
+
);
export default GreenboneLogo;
diff --git a/src/web/components/img/greenboneloginlogo.jsx b/src/web/components/img/greenboneloginlogo.jsx
index b21b1cd076..63ea7ec10c 100644
--- a/src/web/components/img/greenboneloginlogo.jsx
+++ b/src/web/components/img/greenboneloginlogo.jsx
@@ -19,7 +19,7 @@ const Image = styled(Img)`
const LoginLogo = props => {
return (
-
+
);
};
diff --git a/src/web/components/label/severityclass.jsx b/src/web/components/label/severityclass.jsx
index 094c4bcdf6..dbe9f74144 100644
--- a/src/web/components/label/severityclass.jsx
+++ b/src/web/components/label/severityclass.jsx
@@ -29,7 +29,7 @@ const Label = styledExcludeProps(styled.div, [
const HighLabel = props => {
return (
-