Move the button to open the Showkase browser to the developer settings screen. (#389)
This commit is contained in:
parent
e5912edfb5
commit
6b77313fd6
12 changed files with 47 additions and 165 deletions
|
|
@ -44,21 +44,7 @@ class RootPresenterTest {
|
|||
}.test {
|
||||
skipItems(1)
|
||||
val initialState = awaitItem()
|
||||
assertThat(initialState.isShowkaseButtonVisible).isTrue()
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `present - hide showkase button`() = runTest {
|
||||
val presenter = createPresenter()
|
||||
moleculeFlow(RecompositionClock.Immediate) {
|
||||
presenter.present()
|
||||
}.test {
|
||||
skipItems(1)
|
||||
val initialState = awaitItem()
|
||||
assertThat(initialState.isShowkaseButtonVisible).isTrue()
|
||||
initialState.eventSink.invoke(RootEvents.HideShowkaseButton)
|
||||
assertThat(awaitItem().isShowkaseButtonVisible).isFalse()
|
||||
assertThat(initialState.crashDetectionState.crashDetected).isFalse()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue