Skip to content

Commit c6a5d65

Browse files
committed
Updating side-nav to work with basic cypress tests.
1 parent 7de6b54 commit c6a5d65

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dod-advana/advana-side-nav",
3-
"version": "0.1.5",
3+
"version": "0.1.6",
44
"private": false,
55
"babel": {
66
"presets": [

src/lib/SlideOutMenu.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ const Menu = ({ applicationsList, className }) => {
528528
})();
529529
}, []);
530530
return (
531-
<MenuWrapper menuBackgroundColor={menuBackgroundColor} fontColor={fontColor} className={className} >
531+
<MenuWrapper menuBackgroundColor={menuBackgroundColor} fontColor={fontColor} className={className} data-cy={'side-nav'}>
532532

533533
<OpenedMenu
534534
open={menuOpened}
@@ -547,6 +547,7 @@ const Menu = ({ applicationsList, className }) => {
547547
openCloseIconColor={openCloseIconColor}
548548
onClick={handleToggle}
549549
data-testid="close-button"
550+
data-cy="side-nav-close-button"
550551
>
551552
<KeyboardArrowLeft fontSize="inherit" />
552553
</OpenCloseWrapper>
@@ -612,6 +613,7 @@ const Menu = ({ applicationsList, className }) => {
612613
openCloseButtonBackgroundColor={openCloseButtonBackgroundColor}
613614
openCloseIconColor={openCloseIconColor}
614615
onClick={handleToggle}
616+
data-cy="side-nav-open-button"
615617
>
616618
<AcronymSubheaderIcon src={MenuIcon} alt="menu icon" />
617619
</OpenCloseWrapper>

0 commit comments

Comments
 (0)