Problematy / goodmap-frontend

MIT License
0 stars 6 forks source link

add location control #27

Closed kacper-cyra closed 1 year ago

kacper-cyra commented 1 year ago

There is no unit test for this component as it is fully dependent on Leaflet and browser geolocation API, and because of this there would be plenty of mocking and this case suit would be pretty useless. My proposition is to cover this in suit of e2e or integration test for whole map component.

There was mention of problem with Mozilla Firefox not saving permission on locating user. On macOS I could not reproduce. After selecting remember decision I did not get a popup on new enter.

closes #23

coveralls commented 1 year ago

Pull Request Test Coverage Report for Build 4009523646

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/components/Map/components/LocationControl/LocationControl.jsx 0 18 0.0%
<!-- Total: 0 18 0.0% -->
Totals Coverage Status
Change from base Build 3995591653: -10.3%
Covered Lines: 35
Relevant Lines: 88

💛 - Coveralls
raven-wing commented 1 year ago

Mentioned problem with Mozilla Firefox was result of wrong test. You can forget about it.

raven-wing commented 1 year ago

Please update version of app to '0.1.7' in package.json so after merge we'll be able to release this version.

Davcode1234 commented 1 year ago

Looks good :+1: