Skip to content

Commit

Permalink
fix: enable testing of SponsorsScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamada-Ika committed Aug 2, 2024
1 parent 9207ef6 commit 85189fc
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ import dagger.hilt.android.testing.BindValue
import dagger.hilt.android.testing.HiltAndroidTest
import io.github.droidkaigi.confsched.testing.DescribedBehavior
import io.github.droidkaigi.confsched.testing.RobotTestRule
import io.github.droidkaigi.confsched.testing.StaffServerRobot.ServerStatus.Error
import io.github.droidkaigi.confsched.testing.StaffServerRobot.ServerStatus.Operational
import io.github.droidkaigi.confsched.testing.SponsorsServerRobot.ServerStatus
import io.github.droidkaigi.confsched.testing.describeBehaviors
import io.github.droidkaigi.confsched.testing.execute
import io.github.droidkaigi.confsched.testing.robot.StaffScreenRobot
import io.github.droidkaigi.confsched.testing.robot.SponsorsScreenRobot
import io.github.droidkaigi.confsched.testing.runRobot
import io.github.droidkaigi.confsched.testing.todoChecks
import org.junit.Rule
Expand Down Expand Up @@ -42,7 +41,7 @@ class SponsorsScreenTest(
return describeBehaviors<SponsorsScreenRobot>(name = "SponsorsScreen") {
describe("when server is operational") {
run {
setupSponsorsServer(Operational)
setupSponsorsServer(ServerStatus.Operational)
}
describe("when launch") {
run {
Expand All @@ -58,7 +57,7 @@ class SponsorsScreenTest(

describe("when server is down") {
run {
setupSponsorsServer(Error)
setupSponsorsServer(ServerStatus.Error)
}
describe("when launch") {
run {
Expand Down

0 comments on commit 85189fc

Please sign in to comment.