Skip to content
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

Custom attributes not being passed to DOM element in GoogleMap component #3408

Open
alamenai opened this issue Feb 12, 2025 · 0 comments
Open

Comments

@alamenai
Copy link

Currently, when using the GoogleMap component with a data-testid attribute, the attribute is not being passed through to the rendered DOM element. This makes it difficult to select the map container element in testing environments.

Example of current usage:

<GoogleMap
  data-testid="google-map"
  // other props...
/>

Expected behavior:

The data-testid attribute should be passed to the underlying map container div element

Current behavior:

The data-testid attribute is not being passed through and is missing from the rendered DOM

This affects the ability to select the map element in testing frameworks like Cypress, Jest, or Playwright that rely on data-testid attributes for element selection.

Proposed solution:

Could you please add support for passing through HTML attributes (including data-* attributes) to the underlying container element?

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

No branches or pull requests

1 participant