Move the button to open the Showkase browser to the developer settings screen. (#389)

This commit is contained in:
Benoit Marty 2023-05-04 17:29:03 +02:00
parent e5912edfb5
commit 6b77313fd6
12 changed files with 47 additions and 165 deletions

View file

@ -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()
}
}