Skip to content

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

Closed
cioddi wants to merge 1 commit intomainfrom
feature/maplibremap-cypress-readd-test
Closed

add cypress MapLibreMap test Should remove and re-add the MapLibreMap…#199
cioddi wants to merge 1 commit intomainfrom
feature/maplibremap-cypress-readd-test

Conversation

@cioddi
Copy link
Copy Markdown
Member

@cioddi cioddi commented Feb 14, 2025

… 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant