-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Unit Test Map Markers #356
Comments
Having a trouble targeting markers in the DOM/on map. |
@tomporvaz I think one issue is that the google map and markers render on a canvas by default. It looks like you can disable this by adding I tested this by going into IndieMarker.js, adding New setup for Marker in IndieMarker.js: <Marker
access={this.props.tap.access}
map={this.props.map}
google={this.props.google}
mapCenter={this.props.mapCenter}
key={this.props.key}
name={this.props.tap.tapnum}
organization={this.props.tap.organization}
address={this.props.tap.address}
hours={this.props.tap.hours}
description={this.props.tap.description}
filtration={this.props.tap.filtration}
handicap={this.props.tap.handicap}
service={this.props.tap.service}
sparkling={
'sparkling' in this.props.tap ? this.props.tap.sparkling : 'no'
}
tap_type={this.props.tap.tap_type}
norms_rules={this.props.tap.norms_rules}
vessel={this.props.tap.vessel}
img={this.props.tap.images}
onClick={this.onMarkerClick.bind(this)}
position={{ lat: this.props.tap.lat, lng: this.props.tap.lon }}
icon={this.getIcon(this.props.tap.access)}
infoIcon={this.getIcon(this.props.tap.access, true)}
// The lat and lon properties were added to support the object-based
// setting for SET_SELECTED_PLACE redux action. Object structure consistency is needed in order
// for getWalkingDurationAndTimes() in the SelectedTap component to work properly.
lat={this.props.tap.lat}
lon={this.props.tap.lon}
optimized={false}
/> Ideally, we would only want to do this when in cypress testing, because this will make the site slower since we are now managing divs for every marker rather than drawing once on a canvase. If we could set an env var before cypress runs (i.e. change the test command to
|
@vontell and @mandyshri101 to meet today to discuss implementation |
// This should click the zoom out button
cy.get('button[title="Zoom out"]').click(); |
My recommendation (PMs feel free to chip in): Good initial test:
Steps to do this:
|
Thanks @vontell for helping with this. Let me try and see if I am able to make this happen. I believe this should be quick one. |
@tomporvaz and @freelyPheobe , I believe you shared that Mandy is taking a break, so this ticket can be un-assigned from him and moved back to Ready. @mandyshri101 , thank you for all of your work on this ticket. Do you have anything you can share here with the next contributor who takes this ticket? |
@affabillyty: Sorry billy I could not share as I am traveling for my business trip aboard. the work I did is in my local machine at home in US. Would appreciate if someone can assigned to someone else. Thanks @tomporvaz for doing that. Sorry for having delays in reply as I am in totally different timezone and very busy with my assignment. As soon as I am back I will go ahead and join take on whichever ticket is open. |
Is your feature request related to a problem? Please describe.
Write Cypress Unit tests to compare the number of map markers on the frontend with the number recorded in firebase.
Describe the solution you'd like
n/a
Describe alternatives you've considered
n/a
Additional context
n/a
The text was updated successfully, but these errors were encountered: