Skip to content

Commit

Permalink
fix resize E2E
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssaruth committed Apr 6, 2024
1 parent 137f5c6 commit 449217d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test/kotlin/dartzee/e2e/TestResizeE2E.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package dartzee.e2e

import dartzee.game.GameType
import dartzee.game.prepareParticipants
import dartzee.helper.DEFAULT_X01_CONFIG
import dartzee.helper.beastDartsModel
import dartzee.helper.insertGame
Expand All @@ -18,9 +19,11 @@ class TestResizeE2E : AbstractE2ETest() {
val aiModel = beastDartsModel()
val player = insertPlayer(model = aiModel)

val (gamePanel, listener) = setUpGamePanelAndStartGame(game, listOf(player))
val participants = prepareParticipants(game.rowId, listOf(player), false)
val (gamePanel, listener) = setUpGamePanel(game, participants)
gamePanel.setSize(300, 675)
gamePanel.preferredSize = Dimension(300, 675)
gamePanel.startNewGame(participants)

awaitGameFinish(game)

Expand Down

0 comments on commit 449217d

Please sign in to comment.