From 557dfc5a6d363d2882aa0adc1cd53ffe6f4a87d7 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Fri, 31 May 2024 21:41:47 +0200 Subject: [PATCH] Add test for ExpandFocusedSidePanel config --- .../helpers/window_arrangement_helper_test.go | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/pkg/gui/controllers/helpers/window_arrangement_helper_test.go b/pkg/gui/controllers/helpers/window_arrangement_helper_test.go index 9c455ff33..47c48fb7a 100644 --- a/pkg/gui/controllers/helpers/window_arrangement_helper_test.go +++ b/pkg/gui/controllers/helpers/window_arrangement_helper_test.go @@ -121,6 +121,46 @@ func TestGetWindowDimensions(t *testing.T) { B: information `, }, + { + name: "expandFocusedSidePanel", + mutateArgs: func(args *WindowArrangementArgs) { + args.UserConfig.Gui.ExpandFocusedSidePanel = true + }, + expected: ` + ╭status─────────────────╮╭main────────────────────────────────────────────╮ + │ ││ │ + ╰───────────────────────╯│ │ + ╭files──────────────────╮│ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + ╰───────────────────────╯│ │ + ╭branches───────────────╮│ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + ╰───────────────────────╯│ │ + ╭commits────────────────╮│ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + ╰───────────────────────╯│ │ + ╭stash──────────────────╮│ │ + │ ││ │ + ╰───────────────────────╯╰────────────────────────────────────────────────╯ + A + A: statusSpacer1 + B: information + `, + }, { name: "half screen mode, enlargedSideViewLocation left", mutateArgs: func(args *WindowArrangementArgs) {