Skip to content

Commit

Permalink
chore(tests): Add data-testid attributes to important elements (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstoffan authored May 5, 2020
1 parent 937f39d commit cafd44d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/AnnotationTarget/AnnotationTarget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const AnnotationTarget = (props: Props, ref: React.Ref<HTMLAnchorElement>): JSX.
<a
ref={innerRef}
className={classNames('ba-AnnotationTarget', className)}
data-testid={`ba-AnnotationTarget-${annotationId}`}
href="#" // Needed for IE11 to handle click events properly
onBlur={handleBlur}
onClick={handleClick}
Expand Down
1 change: 1 addition & 0 deletions src/components/Popups/ReplyField/ReplyField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export default class ReplyField extends React.Component<Props, State> {
placeholder={placeholder}
readOnly={isDisabled}
stripPastedStyles
webDriverTestID="ba-ReplyField-editor"
/>
</div>
);
Expand Down

0 comments on commit cafd44d

Please sign in to comment.