Skip to content

Commit 10e44bd

Browse files
committed
Use data-qa attributes to differentiate elements
1 parent 0b1515a commit 10e44bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/counter/Counter.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const Counter: React.FC = () => {
2626
<button
2727
className="waves-effect waves-teal btn-flat blue"
2828
type="button"
29+
data-qa="decrement-counter"
2930
onClick={() =>
3031
dispatch({ type: actionTypes.DECREMENT_COUNTER })
3132
}
@@ -35,6 +36,7 @@ const Counter: React.FC = () => {
3536
<button
3637
className="waves-effect waves-teal btn-flat red"
3738
type="button"
39+
data-qa="increment-counter"
3840
onClick={() =>
3941
dispatch({ type: actionTypes.INCREMENT_COUNTER })
4042
}

0 commit comments

Comments
 (0)