react-map-components-maplibre icon indicating copy to clipboard operation
react-map-components-maplibre copied to clipboard

add cypress MapLibreMap test Should remove and re-add the MapLibreMap…

Open cioddi opened this issue 9 months ago • 0 comments

… component and verify initialization

Initial intent of this PR was to add a test that reproduces the error that occurs in this (https://github.com/bcgov/WetpaddlersV2/tree/main/app) app when switching back and forth from "Map" and "DatasetList". when going back to map from Datasetlist the app crashes.

Simply toggling the MapLibreMap Component in and out of React-DOM, as done in the cypress test that was added in this PR, appears to not reproduce the error.

Todos:

  • [ ] - create a test case that reproduces the error in the wetpaddlers app or identify the cause outside of @mapcomponents/react-maplibre
  • [ ] - adjust the MapLibreMap component to make the test pass

cioddi avatar Feb 14 '25 12:02 cioddi