-
+
+
{
};
const mapDispatchToProps = (dispatch) => ({
- setSnackbarState: (snackbarState) => dispatch(setSnackbarState(snackbarState)),
+ setSnackbarState: (snackbarState) =>
+ dispatch(setSnackbarState(snackbarState)),
});
-export default withRouter(connect(mapStateToProps,
- mapDispatchToProps)(AddContractor));
+export default withRouter(
+ connect(mapStateToProps, mapDispatchToProps)(AddContractor)
+);
const useStyles = makeStyles(() => ({
root: {
display: "flex",
- justifyContent:"center",
+ justifyContent: "center",
},
input: {
display: "none",
@@ -813,7 +817,7 @@ const useStyles = makeStyles(() => ({
},
submitBtnWrapper: {
display: "flex",
- justifyContent:"center",
+ justifyContent: "center",
},
submitBtn: {
width: 200,
diff --git a/Frontend/src/components/ProfilePageContainer.jsx b/Frontend/src/components/ProfilePageContainer.jsx
index 8e167e45..8385e486 100644
--- a/Frontend/src/components/ProfilePageContainer.jsx
+++ b/Frontend/src/components/ProfilePageContainer.jsx
@@ -68,6 +68,7 @@ export function ProfilePageContainer(props) {
);
diff --git a/Frontend/src/components/profilePage/CoreInfoArea.jsx b/Frontend/src/components/profilePage/CoreInfoArea.jsx
index de78b55b..ee0642bf 100644
--- a/Frontend/src/components/profilePage/CoreInfoArea.jsx
+++ b/Frontend/src/components/profilePage/CoreInfoArea.jsx
@@ -44,6 +44,7 @@ function CoreInfoArea(props) {
color="textPrimary"
// @ts-ignore
component="p"
+ data-cy="core-info-content"
>
{information.map((entry) => getInfoEntry(entry[0], entry[1]))}
diff --git a/Frontend/src/components/profilePage/SkillsArea.jsx b/Frontend/src/components/profilePage/SkillsArea.jsx
index 8988a6af..28e86e55 100644
--- a/Frontend/src/components/profilePage/SkillsArea.jsx
+++ b/Frontend/src/components/profilePage/SkillsArea.jsx
@@ -76,7 +76,7 @@ const parseSkillsToTable = (
for (const skillCategory in skillObject) {
let skillCounter = 0;
skillEntries.push(
-
+
{
const skills = {};
skills[skillCategory] = [skill];
@@ -140,7 +141,7 @@ function SkillsArea(props) {
Search with these skills
-
+
{parseSkillsToTable(
skillObject,
styles,
diff --git a/Frontend/src/components/searchPage/searchArea/ApplyFilterWidget.jsx b/Frontend/src/components/searchPage/searchArea/ApplyFilterWidget.jsx
index cc96f099..55175d15 100644
--- a/Frontend/src/components/searchPage/searchArea/ApplyFilterWidget.jsx
+++ b/Frontend/src/components/searchPage/searchArea/ApplyFilterWidget.jsx
@@ -153,6 +153,7 @@ function CollapsableCategoryBox(props) {
button
className="category"
onClick={handleExpandMoreClick}
+ data-cy={`category-title-${label}`}
>
{!expanded ? (
@@ -161,7 +162,12 @@ function CollapsableCategoryBox(props) {
)}
-
+
{children}
>
diff --git a/Frontend/src/components/searchPage/searchArea/SearchByNameBar.jsx b/Frontend/src/components/searchPage/searchArea/SearchByNameBar.jsx
index 3eec6594..4f2ea797 100644
--- a/Frontend/src/components/searchPage/searchArea/SearchByNameBar.jsx
+++ b/Frontend/src/components/searchPage/searchArea/SearchByNameBar.jsx
@@ -126,13 +126,13 @@ function SearchByNameBar(props) {
getOptionLabel={() => inputValue}
openOnFocus={true}
freeSolo={true}
- data-cy="search-by-name"
renderInput={(params) => (
)}
renderOption={(option, state) => {