Skip to content

Commit

Permalink
add testid for tab
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahd93 committed Feb 12, 2021
1 parent b9013fb commit 944eed3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions gsa/src/web/components/tab/tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const Tab = ({
onActivate,
}) => (
<StyledDiv
data-testid="tab"
active={isActive}
className={className}
onClick={disabled ? undefined : onActivate}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -964,11 +964,13 @@ exports[`Audit Detailspage tests should render full Detailspage 1`] = `
>
<div
class="c24"
data-testid="tab"
>
Information
</div>
<div
class="c25"
data-testid="tab"
>
<div
class="c26"
Expand Down

0 comments on commit 944eed3

Please sign in to comment.