Browse Source

Fix test `present - with CallType RoomCall sets call as active, loads URL, runs WidgetDriver and notifies the other clients a call started` not passing.

pull/3283/head
Benoit Marty 2 days ago
parent
commit
c087becee1
  1. 3
      services/analytics/test/src/main/kotlin/io/element/android/services/analytics/test/FakeScreenTracker.kt

3
services/analytics/test/src/main/kotlin/io/element/android/services/analytics/test/FakeScreenTracker.kt

@ -8,6 +8,7 @@
package io.element.android.services.analytics.test package io.element.android.services.analytics.test
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import im.vector.app.features.analytics.plan.MobileScreen import im.vector.app.features.analytics.plan.MobileScreen
import io.element.android.services.analytics.api.ScreenTracker import io.element.android.services.analytics.api.ScreenTracker
import io.element.android.tests.testutils.lambda.lambdaError import io.element.android.tests.testutils.lambda.lambdaError
@ -17,6 +18,8 @@ class FakeScreenTracker(
) : ScreenTracker { ) : ScreenTracker {
@Composable @Composable
override fun TrackScreen(screen: MobileScreen.ScreenName) { override fun TrackScreen(screen: MobileScreen.ScreenName) {
LaunchedEffect(Unit) {
trackScreenLambda(screen) trackScreenLambda(screen)
} }
} }
}

Loading…
Cancel
Save