-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move party mode switch to utils screen
- Loading branch information
1 parent
0dd12e3
commit da87fa5
Showing
4 changed files
with
33 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package dartzee.screen | ||
|
||
import com.github.alyssaburlton.swingtest.clickChild | ||
import dartzee.helper.AbstractTest | ||
import dartzee.utils.InjectedThings | ||
import io.kotest.matchers.shouldBe | ||
import javax.swing.JButton | ||
import org.junit.jupiter.api.Test | ||
|
||
class TestUtilitiesScreen : AbstractTest() { | ||
@Test | ||
fun `Should enter party mode`() { | ||
ScreenCache.switch<UtilitiesScreen>() | ||
|
||
val utilitiesScreen = ScreenCache.currentScreen() | ||
utilitiesScreen.clickChild<JButton>(text = "Enter Party Mode") | ||
|
||
InjectedThings.partyMode shouldBe true | ||
ScreenCache.currentScreen() shouldBe ScreenCache.get<MenuScreen>() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters