-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat: add refresh address button for qr code #692
feat: add refresh address button for qr code #692
Conversation
Awesome, thank you very much! |
), | ||
); | ||
|
||
const refreshBtn = await screen.findByRole("button", { |
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 like the test is failing - could you check that please? :)
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.
Hey @cstenglein , no worries at all. Happy to contribute, and hopefully there'll be a chance to keep helping out.
Interesting, I'm checking this one out. I noticed that there's an uncaught request going out, and I managed to catch it with a beforeEach
instead of beforeAll
at the beginning of these tests. However, it seems like the error is an "unknown login error" which does not seem to be happening when running the tests locally. Can you think of any reasons why that could be?
In any case, let's maybe see if this takes care of it.
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.
Well, it seems to have done the trick, right?
Let me know if there's anything else and I'll check it out. 🙂
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.
Yes, the reason is the useEffect
hook in the ReceiveOnChain
component, which fetches the new address at the start.
Looking good, merging, thank you!
da8d65a
to
9476ac7
Compare
), | ||
); | ||
|
||
const refreshBtn = await screen.findByRole("button", { |
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.
Yes, the reason is the useEffect
hook in the ReceiveOnChain
component, which fetches the new address at the start.
Looking good, merging, thank you!
Description
This PR addresses issue #431
Screen Recording
This is a short demo of the resulting behaviour (with an overridden response, given that the mock backend seems to return the same address from the
new-address
endpoint).