diff --git a/CHANGELOG.md b/CHANGELOG.md index ebdd65ff34..011d1ef659 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Added `App.get_key_display` https://github.com/Textualize/textual/pull/4890 - Added `DOMNode.BINDING_GROUP` https://github.com/Textualize/textual/pull/4906 - Added `DOMNode.HELP` classvar which contains Markdown help to be shown in the help panel https://github.com/Textualize/textual/pull/4915 +- Added `App.get_system_commands` https://github.com/Textualize/textual/pull/4920 ### Changed @@ -30,6 +31,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Keys such as escape and space are now displayed in lower case in footer https://github.com/Textualize/textual/pull/4876 - Changed default command palette binding to `ctrl+p` https://github.com/Textualize/textual/pull/4867 - Removed `ctrl_to_caret` and `upper_case_keys` from Footer. These can be implemented in `App.get_key_display`. +- Renamed `SystemCommands` to `SystemCommandsProvider` https://github.com/Textualize/textual/pull/4920 ### Fixed diff --git a/tests/snapshot_tests/test_snapshots.py b/tests/snapshot_tests/test_snapshots.py index 6d48d756b1..3baa2eb2d1 100644 --- a/tests/snapshot_tests/test_snapshots.py +++ b/tests/snapshot_tests/test_snapshots.py @@ -1450,6 +1450,15 @@ def test_split(snap_compare): assert snap_compare(SNAPSHOT_APPS_DIR / "split.py", terminal_size=(100, 30)) +def test_system_commands(snap_compare): + """Test help panel.""" + assert snap_compare( + SNAPSHOT_APPS_DIR / "help_panel.py", + terminal_size=(100, 30), + press=["ctrl+p"], + ) + + def test_help_panel(snap_compare): """Test help panel.""" assert snap_compare(