Skip to content
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

Merged

Conversation

jeremyschuurmans
Copy link
Contributor

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

@jeremyschuurmans jeremyschuurmans force-pushed the jeremy/GITC-574/grants-explorer-routing-change branch from 8680145 to e8eaf95 Compare November 4, 2021 17:29
Comment on lines +6 to +12
beforeEach(() => {
cy.impersonateUser();
});

afterEach(() => {
cy.logout();
});
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@gdixon gdixon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@frankchen07
Copy link
Contributor

LGTM, thanks!

@thelostone-mc thelostone-mc merged commit 14e4fca into master Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants