-
Notifications
You must be signed in to change notification settings - Fork 0
make route for become-a-provider #188
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
Conversation
Make EmailProviderRequest's Cancel be a link to /
3a6c311
to
c191272
Compare
import ProviderLogin from '$components/ProviderLogin.svelte'; | ||
import { pageContent, PageContent } from '$lib/stores/pageContentStore'; | ||
</script> | ||
|
||
{#if $pageContent === PageContent.Dashboard} | ||
<Dashboard /> | ||
{:else if $pageContent === PageContent.Login} | ||
{:else} | ||
<ProviderLogin /> |
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.
Since it's just a link now we don't need 3 conditions.
@@ -8,28 +8,20 @@ import userEvent from '@testing-library/user-event'; | |||
globalThis.alert = () => {}; | |||
|
|||
describe('CreateProvider component', () => { | |||
const mockCancelAction = vi.fn(); |
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.
cancelActionsand mockCancelActions all were canceled went away because now you just go back to root, as a link.
- webkit and firefox passing now for some reason - add clicking the 'Home' button to the playwright navigation 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.
Update Testing
section of README with instructions to install necessary Playwright browsers before running tests
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.
- Reviewed code
- Pulled branch, ran tests & browsed locally
Goal
The goal of this PR is to make a route for become-a-provider so that it's easier to navigate between the login/become provider routes and so that clicking Home takes you to the website root, i.e. main page.
I also added Playwright to test navigation and for future tests, however, I didn't add it to CI since it was starting to get further out of scope. There is a chore for it now though: #191
Closes #183
Checklist
How To Test the Changes
After verifying that the Playwright tests passed:
a. the browser back button takes you back home.
b. the 'Back' link takes you back home.
c. ... and selecting Testnet network, the 'Cancel' link takes you back home.
d. ... and selecting Mainnet network, the 'Cancel' link takes you back home.
/become-a-provider
after the root and it shows you the Become A Provider page, and that the buttons all do what they're supposed to.