Skip to content

Commit

Permalink
Adding in some data selectors for cypress testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
JLyons1985 committed Jun 26, 2022
1 parent 9e90f00 commit e7c8f85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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-platform-ui",
"version": "1.4.10",
"version": "1.4.11",
"private": false,
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/ConsentAgreement.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const getIsOpen = () => {
};

const setAgreementTime = () => {
// localStorage.setItem(AGREEMENT_KEY, (new Date()).toString());
const futureDate = new Date();
futureDate.setUTCDate(futureDate.getUTCDate() + 2);
document.cookie = `${AGREEMENT_KEY}=${(new Date()).toString()};domain=${Config.COOKIE_DOMAIN};expires=${futureDate.toString()}`;
Expand All @@ -35,13 +34,13 @@ const ConsentAgreement = ({ navigateTo = 'navigate to the Advana App-wide Agreem

const [isOpen, setIsOpen] = useState(getIsOpen());


return (
<Dialog
open={isOpen}
maxWidth="md"
disableBackdropClick={true}
disableEscapeKeyDown={true}
data-cy={'consent-agreement'}
>
<DialogTitle disableTypography>
<Typography varient="h3">DoD Notice and Consent Banner</Typography>
Expand All @@ -65,6 +64,7 @@ const ConsentAgreement = ({ navigateTo = 'navigate to the Advana App-wide Agreem
variant="contained"
color="primary"
size="small"
data-cy={'consent-agreement-okay'}
>
OK
</Button>
Expand Down

0 comments on commit e7c8f85

Please sign in to comment.