From 314cc73ab6e3af9adaed0cf431315597bd67ecaf Mon Sep 17 00:00:00 2001 From: MiraGeowerkstatt Date: Wed, 21 Aug 2024 12:14:35 +0200 Subject: [PATCH 1/3] Fix button label --- .../stratigraphy/lithology/lithologyHeader/profileHeader.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/pages/detail/form/stratigraphy/lithology/lithologyHeader/profileHeader.jsx b/src/client/src/pages/detail/form/stratigraphy/lithology/lithologyHeader/profileHeader.jsx index eb0e4e299..078097e78 100644 --- a/src/client/src/pages/detail/form/stratigraphy/lithology/lithologyHeader/profileHeader.jsx +++ b/src/client/src/pages/detail/form/stratigraphy/lithology/lithologyHeader/profileHeader.jsx @@ -61,7 +61,7 @@ const ProfileHeader = props => { /> {isEditable && ( - + )} From d826363cda3766c63ec72834851d9df881ee58ae Mon Sep 17 00:00:00 2001 From: MiraGeowerkstatt Date: Wed, 21 Aug 2024 12:29:23 +0200 Subject: [PATCH 2/3] Remove unused import --- .../stratigraphy/lithology/lithologyHeader/profileHeader.jsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/client/src/pages/detail/form/stratigraphy/lithology/lithologyHeader/profileHeader.jsx b/src/client/src/pages/detail/form/stratigraphy/lithology/lithologyHeader/profileHeader.jsx index 078097e78..292adcc01 100644 --- a/src/client/src/pages/detail/form/stratigraphy/lithology/lithologyHeader/profileHeader.jsx +++ b/src/client/src/pages/detail/form/stratigraphy/lithology/lithologyHeader/profileHeader.jsx @@ -2,14 +2,12 @@ import { useCallback, useEffect, useState } from "react"; import { createNewStratigraphy } from "./api"; import { fetchStratigraphyByBoreholeId } from "../../../../../../api/fetchApiV2.js"; import ProfileHeaderList from "./profileHeaderList"; -import { useTranslation } from "react-i18next"; import { AddButton } from "../../../../../../components/buttons/buttons"; import { Box, Stack } from "@mui/material"; const ProfileHeader = props => { const { boreholeID, isEditable, reloadHeader, selectedStratigraphy, setSelectedStratigraphy, setIsLoadingData } = props; - const { t } = useTranslation(); const [profiles, setProfiles] = useState([]); const setStratigraphy = useCallback( From 118a2f77d727cce6f80c4be7cd14697f58886ec6 Mon Sep 17 00:00:00 2001 From: MiraGeowerkstatt Date: Wed, 21 Aug 2024 12:31:17 +0200 Subject: [PATCH 3/3] Improve flakey polygon filter test --- src/client/cypress/e2e/filters/polygonFilter.cy.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/cypress/e2e/filters/polygonFilter.cy.js b/src/client/cypress/e2e/filters/polygonFilter.cy.js index b9137a9de..fcd4f65dc 100644 --- a/src/client/cypress/e2e/filters/polygonFilter.cy.js +++ b/src/client/cypress/e2e/filters/polygonFilter.cy.js @@ -9,6 +9,7 @@ function drawPolygon() { canvas.trigger("pointerdown", { x: 550, y: 810 }).trigger("pointerup", { x: 550, y: 810 }); canvas.trigger("pointerdown", { x: 640, y: 810 }).trigger("pointerup", { x: 640, y: 810 }); canvas.trigger("pointerdown", { x: 450, y: 300 }).trigger("pointerup", { x: 450, y: 300 }); + cy.wait(2000); } function assertIsFilteredByPolygon() {