Skip to content

Commit

Permalink
Updating side-nav to work with basic cypress tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
JLyons1985 committed Jun 29, 2022
1 parent 7de6b54 commit c6a5d65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dod-advana/advana-side-nav",
"version": "0.1.5",
"version": "0.1.6",
"private": false,
"babel": {
"presets": [
Expand Down
4 changes: 3 additions & 1 deletion src/lib/SlideOutMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ const Menu = ({ applicationsList, className }) => {
})();
}, []);
return (
<MenuWrapper menuBackgroundColor={menuBackgroundColor} fontColor={fontColor} className={className} >
<MenuWrapper menuBackgroundColor={menuBackgroundColor} fontColor={fontColor} className={className} data-cy={'side-nav'}>

<OpenedMenu
open={menuOpened}
Expand All @@ -547,6 +547,7 @@ const Menu = ({ applicationsList, className }) => {
openCloseIconColor={openCloseIconColor}
onClick={handleToggle}
data-testid="close-button"
data-cy="side-nav-close-button"
>
<KeyboardArrowLeft fontSize="inherit" />
</OpenCloseWrapper>
Expand Down Expand Up @@ -612,6 +613,7 @@ const Menu = ({ applicationsList, className }) => {
openCloseButtonBackgroundColor={openCloseButtonBackgroundColor}
openCloseIconColor={openCloseIconColor}
onClick={handleToggle}
data-cy="side-nav-open-button"
>
<AcronymSubheaderIcon src={MenuIcon} alt="menu icon" />
</OpenCloseWrapper>
Expand Down

0 comments on commit c6a5d65

Please sign in to comment.