Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Fixes #4294 'added profile deleted message' #4560
Fixes #4294 'added profile deleted message' #4560
Changes from 18 commits
69bbc79
b386cdb
f1e3428
5ff1077
a92c3ed
1d634af
7882cf7
5daf12d
c0f91a2
3492144
4793299
047c6e0
c1274d4
96d628d
2508427
fa4b79b
80f8b48
df71f74
af3f9f0
d4d176e
67eca56
dc9cdb6
958357d
4f5947e
1c07fef
0e361e6
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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 finally realized what I thought has been missing from the changed tests: we still need to verify that deletion occurs via the dialog. I think you need to add a test that finishes the deletion and then verifies that the correct destination activity has been routed to (using the same intends logic as this test used).
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.
We can just use
withId()
here, no need for the extragetString
.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.
We actually should have a test for the fragment, too, and this may influence how you test ProfileEditFragment.
ProfileEditFragment's tests technically only care about whether the dialog shows up when expected, and that the cancel/delete buttons do what's expected (i.e. closes the dialog).
DeleteProfileSuccessDialogFragment's tests, on the other hand, should verify properties regarding the fragment itself (such as its word contents, and that the buttons perform the generic behaviors that they're supposed to).
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.
Okay. I will use this insight to start working on it right away.
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.
This is still unresolved.