From 449217df43ff78bb7fc0d10a9e00717e6c25e39b Mon Sep 17 00:00:00 2001 From: Alyssa Date: Sat, 6 Apr 2024 19:53:58 +0100 Subject: [PATCH] fix resize E2E --- src/test/kotlin/dartzee/e2e/TestResizeE2E.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/test/kotlin/dartzee/e2e/TestResizeE2E.kt b/src/test/kotlin/dartzee/e2e/TestResizeE2E.kt index fc206444..cb823128 100644 --- a/src/test/kotlin/dartzee/e2e/TestResizeE2E.kt +++ b/src/test/kotlin/dartzee/e2e/TestResizeE2E.kt @@ -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 @@ -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)