From 461ea7c63b3de30b3c8305742ed3b6e29b8628d5 Mon Sep 17 00:00:00 2001 From: Adam Batkin Date: Tue, 12 Mar 2024 17:55:53 -0400 Subject: [PATCH] update tests --- zellij-server/src/unit/screen_tests.rs | 6 ++++++ ...tests__send_cli_new_tab_action_with_name_and_layout.snap | 6 ++++-- ...p__setup_test__default_config_with_no_cli_arguments.snap | 4 ++++ ...etup_test__layout_env_vars_override_config_env_vars.snap | 4 ++++ ...p__setup_test__layout_themes_override_config_themes.snap | 4 ++++ ...p_test__layout_ui_config_overrides_config_ui_config.snap | 4 ++++ 6 files changed, 26 insertions(+), 2 deletions(-) diff --git a/zellij-server/src/unit/screen_tests.rs b/zellij-server/src/unit/screen_tests.rs index f355428687..a3e50f086b 100644 --- a/zellij-server/src/unit/screen_tests.rs +++ b/zellij-server/src/unit/screen_tests.rs @@ -2646,6 +2646,9 @@ pub fn send_cli_new_tab_action_default_params() { layout: None, layout_dir: None, cwd: None, + run: None, + args: None, + edit: None, }; send_cli_action_to_server(&session_metadata, new_tab_action, client_id); std::thread::sleep(std::time::Duration::from_millis(100)); @@ -2686,6 +2689,9 @@ pub fn send_cli_new_tab_action_with_name_and_layout() { ))), layout_dir: None, cwd: None, + run: None, + args: None, + edit: None, }; send_cli_action_to_server(&session_metadata, new_tab_action, client_id); std::thread::sleep(std::time::Duration::from_millis(100)); diff --git a/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__send_cli_new_tab_action_with_name_and_layout.snap b/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__send_cli_new_tab_action_with_name_and_layout.snap index f3bcbecb0b..c4754c98cb 100644 --- a/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__send_cli_new_tab_action_with_name_and_layout.snap +++ b/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__send_cli_new_tab_action_with_name_and_layout.snap @@ -1,10 +1,12 @@ --- source: zellij-server/src/./unit/screen_tests.rs -assertion_line: 2292 +assertion_line: 2677 expression: "format!(\"{:#?}\", new_tab_instruction)" --- NewTab( - None, + Some( + ".", + ), None, Some( TiledPaneLayout { diff --git a/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__default_config_with_no_cli_arguments.snap b/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__default_config_with_no_cli_arguments.snap index 4565712523..6f6335396c 100644 --- a/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__default_config_with_no_cli_arguments.snap +++ b/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__default_config_with_no_cli_arguments.snap @@ -1759,6 +1759,8 @@ Config { key_modifiers: {}, }: [ NewTab( + None, + None, None, [], None, @@ -5211,6 +5213,8 @@ Config { key_modifiers: {}, }: [ NewTab( + None, + None, None, [], None, diff --git a/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_env_vars_override_config_env_vars.snap b/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_env_vars_override_config_env_vars.snap index 95e4ff270b..f752186c2e 100644 --- a/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_env_vars_override_config_env_vars.snap +++ b/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_env_vars_override_config_env_vars.snap @@ -1759,6 +1759,8 @@ Config { key_modifiers: {}, }: [ NewTab( + None, + None, None, [], None, @@ -5211,6 +5213,8 @@ Config { key_modifiers: {}, }: [ NewTab( + None, + None, None, [], None, diff --git a/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_themes_override_config_themes.snap b/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_themes_override_config_themes.snap index bfda7107b1..7c98afc41c 100644 --- a/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_themes_override_config_themes.snap +++ b/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_themes_override_config_themes.snap @@ -1759,6 +1759,8 @@ Config { key_modifiers: {}, }: [ NewTab( + None, + None, None, [], None, @@ -5211,6 +5213,8 @@ Config { key_modifiers: {}, }: [ NewTab( + None, + None, None, [], None, diff --git a/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_ui_config_overrides_config_ui_config.snap b/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_ui_config_overrides_config_ui_config.snap index 5233e9e4ec..bbaf21d199 100644 --- a/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_ui_config_overrides_config_ui_config.snap +++ b/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_ui_config_overrides_config_ui_config.snap @@ -1759,6 +1759,8 @@ Config { key_modifiers: {}, }: [ NewTab( + None, + None, None, [], None, @@ -5211,6 +5213,8 @@ Config { key_modifiers: {}, }: [ NewTab( + None, + None, None, [], None,