Skip to content

Commit 08f3535

Browse files
committed
fix: add cy-data attributes
1 parent 2acbb19 commit 08f3535

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/components/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const Navbar: React.FC = () => (
88
Redux + TypeScript
99
</NavLink>
1010
<ul className="right hide-on-med-and-down">
11-
<li>
11+
<li cy-data="home-nav-link">
1212
<NavLink to="/">Home</NavLink>
1313
</li>
1414
<li>

src/pages/About.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ export const About: React.FC = () => {
1313
omnis doloremque itaque eius eaque sint facilis unde tenetur reiciendis
1414
aliquam soluta?
1515
</p>
16-
<button type="button" className="btn" onClick={() => history.push('/')}>
16+
<button
17+
type="button"
18+
className="btn"
19+
cy-data="go-back-button"
20+
onClick={() => history.push('/')}
21+
>
1722
Go back
1823
</button>
1924
</Fragment>

0 commit comments

Comments
 (0)