Skip to content

Commit

Permalink
fix: add data-testid to map shadow root (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak authored Aug 29, 2024
1 parent 04c7951 commit 676f0b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/my-map/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ export class MyMap extends LitElement {
@property({ type: String })
id = "map";

@property({ type: String })
dataTestId = "map-test-id";

@property({ type: Number })
latitude = 51.507351;

Expand Down Expand Up @@ -749,6 +752,7 @@ export class MyMap extends LitElement {
? "presentation"
: "application"}"
tabindex="${this.staticMode && !this.collapseAttributions ? -1 : 0}"
data-testid="${this.dataTestId}"
/>`;
}

Expand Down

0 comments on commit 676f0b7

Please sign in to comment.