-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
566 amenity marker active states #571
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just would like a single test for active amenity marker.
markerSelect={() => {}} | ||
handleMarkerPress={() => {}} | ||
activeMarker={undefined} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add one test for active amenity too please?
Update snapshots; Add active marker test for AmenityMarkers component;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly good to me. I would like to keep it working on Windows, though. (Although we already broke it in other ways, but these are easy to fix.)
@@ -106,9 +106,6 @@ | |||
"transformIgnorePatterns": [ | |||
"node_modules/(?!(jest-)?react-native|react-navigation)" | |||
], | |||
"moduleNameMapper": { | |||
"\\.(png|gif|jpeg|jpg)$": "RelativeImageStub" | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately this piece seems to be needed to run the tests on Windows. Otherwise you get errors like this when an image is loaded in a test:
FAIL src/screens/FilterScreen/Header.test.js
● Test suite failed to run
C:/code/pride-london-app/assets/images/chevron-left-white.png: Unexpected character '�' (1:0)
> 1 | �PNG
| ^
2 | →
3 |
4 | IHDR 0 ♠ W☻�� ☺sRGB ��∟� �IDATh♣�I
Fixes #566 implemented active states for amenity markers. Also clear stage card when amenity marker is selected.
Pre-merge check-list
Tester check-list
Tested on multiple devices / OS versions (Test on the physical device(s) you have access to, otherwise use BrowserStack):
Optional:
Accessibility Testing (If applicable)
Weak connection testing (If applicable)