From f96388108352d6ed1daf3f72e69bc0e9863464fc Mon Sep 17 00:00:00 2001 From: oxypetalum7 Date: Sun, 17 Sep 2023 16:36:03 +0900 Subject: [PATCH] :fix: change to staffApiClient --- .../testing/robot/StaffScreenRobot.kt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/testing/src/main/java/io/github/droidkaigi/confsched2023/testing/robot/StaffScreenRobot.kt b/core/testing/src/main/java/io/github/droidkaigi/confsched2023/testing/robot/StaffScreenRobot.kt index 6fac28007..1258bb40e 100644 --- a/core/testing/src/main/java/io/github/droidkaigi/confsched2023/testing/robot/StaffScreenRobot.kt +++ b/core/testing/src/main/java/io/github/droidkaigi/confsched2023/testing/robot/StaffScreenRobot.kt @@ -3,8 +3,8 @@ package io.github.droidkaigi.confsched2023.testing.robot import androidx.compose.ui.test.isRoot import androidx.compose.ui.test.junit4.AndroidComposeTestRule import com.github.takahirom.roborazzi.captureRoboImage -import io.github.droidkaigi.confsched2023.data.sessions.FakeSessionsApiClient -import io.github.droidkaigi.confsched2023.data.sessions.SessionsApiClient +import io.github.droidkaigi.confsched2023.data.staff.FakeStaffApiClient +import io.github.droidkaigi.confsched2023.data.staff.StaffApiClient import io.github.droidkaigi.confsched2023.designsystem.theme.KaigiTheme import io.github.droidkaigi.confsched2023.staff.StaffScreen import io.github.droidkaigi.confsched2023.testing.RobotTestRule @@ -19,9 +19,9 @@ class StaffScreenRobot @Inject constructor( @Inject lateinit var robotTestRule: RobotTestRule - @Inject lateinit var sessionsApiClient: SessionsApiClient - val fakeSessionsApiClient: FakeSessionsApiClient - get() = sessionsApiClient as FakeSessionsApiClient + @Inject lateinit var staffApiClient: StaffApiClient + val fakeStaffApiClient: FakeStaffApiClient + get() = staffApiClient as FakeStaffApiClient private lateinit var composeTestRule: AndroidComposeTestRule<*, *> operator fun invoke( @@ -51,10 +51,10 @@ class StaffScreenRobot @Inject constructor( } fun setupServer(serverStatus: ServerStatus) { - fakeSessionsApiClient.setup( + fakeStaffApiClient.setup( when (serverStatus) { - ServerStatus.Operational -> FakeSessionsApiClient.Status.Operational - ServerStatus.Error -> FakeSessionsApiClient.Status.Error + ServerStatus.Operational -> FakeStaffApiClient.Status.Operational + ServerStatus.Error -> FakeStaffApiClient.Status.Error }, ) }