diff --git a/pkg/gui/controllers/helpers/window_arrangement_helper_test.go b/pkg/gui/controllers/helpers/window_arrangement_helper_test.go index 2235d7fb4..7356d47e0 100644 --- a/pkg/gui/controllers/helpers/window_arrangement_helper_test.go +++ b/pkg/gui/controllers/helpers/window_arrangement_helper_test.go @@ -536,6 +536,66 @@ func TestGetWindowDimensions(t *testing.T) { B: information `, }, + { + name: "portrait mode, main view split side by side", + mutateArgs: func(args *WindowArrangementArgs) { + args.Width = 50 + args.Height = 20 + args.UserConfig.Gui.PortraitMode = "always" + args.UserConfig.Gui.MainPanelSplitMode = "horizontal" + args.MainPanes = types.BothMainPanes + }, + /* EXPECTED: + expected: ` + + ╭files───────────────────────────────────────────╮ + │ │ + ╰────────────────────────────────────────────────╯ + + + + ╭main───────────────────╮╭secondary──────────────╮ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + ╰───────────────────────╯╰───────────────────────╯ + A + A: statusSpacer1 + B: information + `, + ACTUAL: */ + expected: ` + + + + + ╭main───────────────────╮╭secondary──────────────╮ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + │ ││ │ + ╰───────────────────────╯╰───────────────────────╯ + A + A: statusSpacer1 + B: information + `, + }, { name: "portrait auto mode, disabled because width is too large", mutateArgs: func(args *WindowArrangementArgs) {