Conversation
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
Generated by 🚫 dangerJS |
|
You can test the changes on this Pull Request by downloading the APK here. |
| buildErrorIconState(), | ||
| buildErrorDescriptionState(), | ||
| buildErrorDoneActionState(onDoneClick) |
There was a problem hiding this comment.
Nitpick 🔍: Minor formatting required.
|
|
||
| <androidx.recyclerview.widget.RecyclerView | ||
| android:id="@+id/recycler_view" | ||
| android:layout_width="match_parent" |
There was a problem hiding this comment.
Nitpick 🔍:MATCH_PARENT is not recommended for widgets contained in a ConstraintLayout.
There was a problem hiding this comment.
I'll address this during consolidation, as all fragments restore/backup will use the same fragment file. Thanks.
| whenever(site.url).thenReturn("www.google.com") | ||
|
|
||
| viewModel.start(site, restoreState, parentViewModel) | ||
| whenever(site.url).thenReturn("www.google.com") |
There was a problem hiding this comment.
Nitpick 🔍: Duplicate stubbing?
whenever(site.url).thenReturn("www.google.com")
| } | ||
|
|
||
| @Test | ||
| fun `given visit site is clicked, then a navigationEvent is posted`() = test { |
There was a problem hiding this comment.
| fun `given visit site is clicked, then a navigationEvent is posted`() = test { | |
| fun `when visit site is clicked, then VisitSite navigationEvent is posted`() = test { |
| when (this) { | ||
| is VisitSite -> { | ||
| // todo annmarie add to ActivityLauncher | ||
| ActivityLauncher.openUrlExternal(this@RestoreActivity, url) |
There was a problem hiding this comment.
Nitpick 🔍: Short branches can be put on the same line as the condition, without braces.
There was a problem hiding this comment.
Ugh - for some reason my IDE pushes them back onto separate lines if I execute a clean up command. I'll have to Google this one so it stops happening. Thanks for pointing it out. in 2d240e8
|
@ashiagr - With the exception of one xml comment, I pushed the fixes. Once CI finished I'll merge. Thanks again. 🙏 |
Parent #13328
This PR implements the "complete" wizard step/view for the restore request and is mostly a clone of Backup Download complete. This PR also undoes the temporary navigations actions implemented in the progress PR #13778 .
Merge Instructions
Cloned Classes
RestoreCompleteAdapter
RestoreCompleteFragment
RestoreCompleteStateListItemBuilder
RestoreCompleteViewModel
Notes:
To test:
Warning: The Restore site button is hooked up, so if you press it your site will be backed up!
Verify
PR submission checklist:
RELEASE-NOTES.txtif necessary.