diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-05-31 21:41:47 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-06-01 08:16:06 +0200 |
commit | 557dfc5a6d363d2882aa0adc1cd53ffe6f4a87d7 (patch) | |
tree | d5fa4a4253bd8eb6359c41d69ae583e4e4a6cf65 /pkg | |
parent | c5baa5da3ad84e7892d6720e54a95460d2f85ebd (diff) |
Add test for ExpandFocusedSidePanel config
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/gui/controllers/helpers/window_arrangement_helper_test.go | 40 |
1 files changed, 40 insertions, 0 deletions
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 @@ -122,6 +122,46 @@ func TestGetWindowDimensions(t *testing.T) { `, }, { + name: "expandFocusedSidePanel", + mutateArgs: func(args *WindowArrangementArgs) { + args.UserConfig.Gui.ExpandFocusedSidePanel = true + }, + expected: ` + ╭status─────────────────╮╭main────────────────────────────────────────────╮ + │ ││ │ + ╰───────────────────────╯│ │ + ╭files──────────────────╮│ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + ╰───────────────────────╯│ │ + ╭branches───────────────╮│ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + ╰───────────────────────╯│ │ + ╭commits────────────────╮│ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + ╰───────────────────────╯│ │ + ╭stash──────────────────╮│ │ + │ ││ │ + ╰───────────────────────╯╰────────────────────────────────────────────────╯ + <options──────────────────────────────────────────────────────>A<B────────> + A: statusSpacer1 + B: information + `, + }, + { name: "half screen mode, enlargedSideViewLocation left", mutateArgs: func(args *WindowArrangementArgs) { args.Height = 20 // smaller height because we don't more here |