diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-20 11:26:06 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-20 11:26:06 +0200 |
| commit | febdd512474a7ffe358b01c15b72871c3f862170 (patch) | |
| tree | 2c7627c3d165ff4bbcbc15aaba40cb9757833096 /tests | |
| parent | e6f90eb9ff852d8279485b7c8a68ef316ba0ae6e (diff) | |
| download | sb-builder-febdd512474a7ffe358b01c15b72871c3f862170.tar.gz sb-builder-febdd512474a7ffe358b01c15b72871c3f862170.zip | |
Ctrl+A / Ctrl+Shift+A: select visible and clear, Packages and Hints
The search field keeps Ctrl+A for its own text.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_gui.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/test_gui.py b/tests/test_gui.py index 69f3a69..891584b 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -402,6 +402,11 @@ class SmokeTest(unittest.TestCase): tab.table.setCurrentIndex(tab.proxy.index(1, 1)) self.assertIn("<s>x</s>", tab.detail.text()) tab.act("update") + select, clear = tab.keys + select.activated.emit() + self.assertEqual(len(tab.model.checked), 4) + clear.activated.emit() + self.assertEqual(tab.model.checked, set()) tab.model.checked.update({"nuclei", "curl"}) tab.act("build") tab.update_all() @@ -475,9 +480,11 @@ class SmokeTest(unittest.TestCase): tab.chips["current"].setChecked(True) visible = [tab.table.item(i, 1).text() for i in range(3) if not tab.table.isRowHidden(i)] self.assertEqual(visible, ["curl"]) - tab.check_rows(True) # visible only: curl, under the "current" chip + select, clear = tab.keys + self.assertEqual((select.key().toString(), clear.key().toString()), ("Ctrl+A", "Ctrl+Shift+A")) + select.activated.emit() # visible only: curl, under the "current" chip self.assertEqual(sorted(tab.checked()), ["curl", "nuclei"]) - tab.check_rows(False) + clear.activated.emit() self.assertEqual(tab.checked(), []) tab.chips["current"].setChecked(False) tab.check_rows(True) |
