-
Notifications
You must be signed in to change notification settings - Fork 733
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
Extract NewPasswordPage from SignInPage, and make new route #7826
Extract NewPasswordPage from SignInPage, and make new route #7826
Conversation
@@ -72,8 +72,7 @@ function makeWrapper(options) { | |||
describe('ActivityList component', () => { | |||
it('on first render, calls the notification resource', async () => { | |||
const { fetchMock, wrapper } = makeWrapper({}); | |||
await wrapper.vm.$nextTick(); | |||
await wrapper.vm.$nextTick(); | |||
await global.flushPromises(); |
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.
Swanky
<!-- TODO: This can be its own separate component --> | ||
<!-- | ||
Learner was created without a password, but now must create one. | ||
This ought to be routed separately. | ||
--> |
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.
From TODO to TODONE 👊
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.
Looks good to me. Thanks for this!
Once the red x below is a green check this should be good to go!
Summary
NewPasswordPage
, which is assigned to a new route/set-password
global.flushPromises
utility, following some advice in these docsnextTick
.Reviewer guidance
/set-password
URL and the learner has already set their password, or theusername
query param is invalid.References
Closes #7321
(We should write separate issues for the other suggested refactors, since they are a little bit more complicated).
This might add some tech debt because the error states just redirect back to the sign-in page. But this is not a regression since these errors were unhandled originally. We would need some specs on how to be more informative to the user when these errors occur.
Contributor Checklist
PR process:
Testing:
Reviewer Checklist
yarn
andpip
)edit