From 72b9d256421c1f2b5189a9577db153c26c27c678 Mon Sep 17 00:00:00 2001 From: Jannik Huschka Date: Tue, 21 Jun 2022 12:23:25 +0200 Subject: [PATCH] fixed test: testUpdateLanesWithCards --- .../instance/testUpdateLanesWithCards.st | 17 +++++++++++++---- .../SPBBoardTests.class/methodProperties.json | 2 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testUpdateLanesWithCards.st b/Squello-Tests.package/SPBBoardTests.class/instance/testUpdateLanesWithCards.st index 9e2978e0..f8d8fe95 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testUpdateLanesWithCards.st +++ b/Squello-Tests.package/SPBBoardTests.class/instance/testUpdateLanesWithCards.st @@ -1,12 +1,21 @@ as yet unclassified testUpdateLanesWithCards - | builder lanes | + | builder lanes lane1 lane2 pasteup1 pasteup2 laneArea | builder := SPBMockBuilder new. lanes := SPBMockGithubBoardProvider new queryColumns. - (lanes at: 1) jsonCards: '{}' parseAsJson. - (lanes at: 2) jsonCards: '{}' parseAsJson. - builder fakeWidgets: (Dictionary newFrom: { 1234 -> '1234' . #lane1234 -> 'lane1234' . 5678 -> '5678' . #lane5678 -> 'lane5678' }). + laneArea := ScrollPane new. + lane1 := lanes first. + lane2 := lanes last. + pasteup1 := SPBPluggablePasteUpMorph new. + pasteup2 := SPBPluggablePasteUpMorph new. + lane1 + jsonCards: '{}' parseAsJson; + pasteup: pasteup1. + lane2 + jsonCards: '{}' parseAsJson; + pasteup: pasteup2. + builder fakeWidgets: (Dictionary newFrom: { 1234 -> pasteup1 . #lane1234 -> (lanes at: 1) . 5678 -> pasteup2 . #lane5678 -> (lanes at: 2) . #laneArea -> laneArea }). board usedBuilder: builder. board lanes: lanes. diff --git a/Squello-Tests.package/SPBBoardTests.class/methodProperties.json b/Squello-Tests.package/SPBBoardTests.class/methodProperties.json index 8c951c3a..218f1b9b 100644 --- a/Squello-Tests.package/SPBBoardTests.class/methodProperties.json +++ b/Squello-Tests.package/SPBBoardTests.class/methodProperties.json @@ -43,7 +43,7 @@ "testShowLanes" : "lo 6/18/2022 13:06", "testShowLanesButDontRebuildCards" : "lo 6/18/2022 13:06", "testUpdateLanes" : "lo 6/18/2022 13:07", - "testUpdateLanesWithCards" : "lo 6/18/2022 13:04", + "testUpdateLanesWithCards" : "jh 6/21/2022 12:22", "testUsedBuilder" : "jh 6/3/2022 20:32", "testWantsAssigneeDrop" : "jh 6/3/2022 20:44", "testWindow" : "jh 6/3/2022 20:33",