diff --git a/frontend/cypress/e2e/vessel_sidebar/control_buttons.spec.ts b/frontend/cypress/e2e/vessel_sidebar/control_buttons.spec.ts index 416bdb5f6b..81ac166200 100644 --- a/frontend/cypress/e2e/vessel_sidebar/control_buttons.spec.ts +++ b/frontend/cypress/e2e/vessel_sidebar/control_buttons.spec.ts @@ -12,10 +12,11 @@ context('Vessel sidebar controls buttons', () => { cy.get('*[data-cy^="vessel-sidebar"]').should('be.visible') // When - cy.get('*[data-cy="vessel-track-depth-selection"]').should('have.attr', 'disabled') cy.get('*[data-cy="show-all-fishing-activities-on-map"]').should('have.attr', 'disabled') cy.get('*[data-cy="trigger-hide-other-vessels-from-sidebar"]').should('have.attr', 'disabled') cy.get('*[data-cy="animate-to-track"]').should('have.attr', 'disabled') + // The positions button is not disabled + cy.get('*[data-cy="vessel-track-depth-selection"]').should('not.have.attr', 'disabled') }) it('Vessel track depth Should be changed', () => { diff --git a/frontend/src/features/VesselSidebar/actions/TrackRequest/index.tsx b/frontend/src/features/VesselSidebar/actions/TrackRequest/index.tsx index 3cf0726574..e76e23b027 100644 --- a/frontend/src/features/VesselSidebar/actions/TrackRequest/index.tsx +++ b/frontend/src/features/VesselSidebar/actions/TrackRequest/index.tsx @@ -24,7 +24,7 @@ export function TrackRequest({ isSidebarOpen }: TrackRequestProps) { const { healthcheckTextWarning } = useMainAppSelector(state => state.global) const { rightMenuIsOpen } = useMainAppSelector(state => state.global) const { defaultVesselTrackDepth } = useMainAppSelector(state => state.map) - const { selectedVesselPositions, selectedVesselTrackRequest } = useMainAppSelector(state => state.vessel) + const { selectedVesselTrackRequest } = useMainAppSelector(state => state.vessel) const { selectedVesselIdentity } = useMainAppSelector(state => state.vessel) const [isOpenedFromClick, setIsOpenedFromClick] = useState(false) @@ -85,7 +85,6 @@ export function TrackRequest({ isSidebarOpen }: TrackRequestProps) {