-
-
Notifications
You must be signed in to change notification settings - Fork 775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jeremy/GITC-574/grants explorer routing change #9663
jeremy/GITC-574/grants explorer routing change #9663
Conversation
8680145
to
e8eaf95
Compare
beforeEach(() => { | ||
cy.impersonateUser(); | ||
}); | ||
|
||
afterEach(() => { | ||
cy.logout(); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these needed for this test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the afterEach
is necessary, but we definitely need the impersonateUser
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you have to log in for this page, then you will need to make sure to log out after the test. If you need the impersonateUser then keep the logout. Cypress will keep that user in session and it could cause state issues for the next test. I expected the grants page to be public.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah that makes sense. I'll put it back, but I just tested it on the production site, and the pages are public. The test breaks without impersonateUser()
though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
LGTM, thanks! |
Description
This PR changes the link to the Grants Explorer on the Products dropdown to route to the explorer rather than the grants page.
Screen.Recording.2021-11-04.at.12.21.04.PM.mov
Refers/Fixes
Testing
This PR includes a Cypress test