diff --git a/server/app/onboarding_test.go b/server/app/onboarding_test.go index 1388add44..078d94c54 100644 --- a/server/app/onboarding_test.go +++ b/server/app/onboarding_test.go @@ -28,7 +28,17 @@ func TestPrepareOnboardingTour(t *testing.T) { th.Store.EXPECT().GetTemplateBoards("0").Return([]*model.Board{&welcomeBoard}, nil) th.Store.EXPECT().DuplicateBoard(welcomeBoard.ID, userID, teamID, false).Return(&model.BoardsAndBlocks{Boards: []*model.Board{&welcomeBoard}}, nil, nil) - th.Store.EXPECT().GetMembersForBoard(welcomeBoard.ID).Return([]*model.BoardMember{}, nil) + th.Store.EXPECT().GetMembersForBoard(welcomeBoard.ID).Return([]*model.BoardMember{}, nil).Times(2) + + privateWelcomeBoard := model.Board{ + ID: "board_id_1", + Title: "Welcome to Boards!", + TeamID: "0", + IsTemplate: true, + Type: model.BoardTypePrivate, + } + newType := model.BoardTypePrivate + th.Store.EXPECT().PatchBoard("board_id_1", &model.BoardPatch{Type: &newType}, "user_id_1").Return(&privateWelcomeBoard, nil) userPropPatch := model.UserPropPatch{ UpdatedFields: map[string]string{