Issue/13326 tweak scan state builder tests#14032
Conversation
Tests were first written with sealed class scan state structure which was converted to list items structure. These tests were commented and then removed in commit d61a3e8. This commit re-adds them tweaking them to fit existing structure.
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
|
You can test the changes on this Pull Request by downloading the APK here. |
ParaskP7
left a comment
There was a problem hiding this comment.
👋 @ashiagr !
I have reviewed and tested this PR as per the instructions, everything works as expected, really amazing job, the actual coverage for ScanStateListItemsBuilderTest.kt is 100% atm, really awesome! 🌟 🌟 🌟
I have left only minor (🔍) comments for you to consider. I am going to approve this PR anyway, since none is blocking. I am NOT going to merge this PR yet to give you some time to apply any of my suggestions. However, feel free to ignore them and merge the PR yourself.
PS: I have noticed that you skipped the then word while writing these test sentences, for example:
- Before:
given fixing threats state, when items are built, items contain shield warning icon with error color - After:
given fixing threats state, when items are built, then items contain shield warning icon with error color
I am not sure if you did that on purpose or not, if not consider adding thethento have this pattern read as expected.
...rc/test/java/org/wordpress/android/ui/jetpack/scan/builders/ScanStateListItemsBuilderTest.kt
Outdated
Show resolved
Hide resolved
...rc/test/java/org/wordpress/android/ui/jetpack/scan/builders/ScanStateListItemsBuilderTest.kt
Outdated
Show resolved
Hide resolved
...rc/test/java/org/wordpress/android/ui/jetpack/scan/builders/ScanStateListItemsBuilderTest.kt
Outdated
Show resolved
Hide resolved
...rc/test/java/org/wordpress/android/ui/jetpack/scan/builders/ScanStateListItemsBuilderTest.kt
Outdated
Show resolved
Hide resolved
|
Thanks so much for the review @ParaskP7! Really appreciate your time in reviewing all tests 🙇♀️.
As discussed on Slack, added Ready for another look :). |
Parent #13326
This PR
given/when/thenformat (c370ddc)It might be easier to review them commit by commit.
PR submission checklist:
RELEASE-NOTES.txtif necessary.