diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-21 10:09:46 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-21 10:09:46 +0200 |
| commit | 1c1fb069f7f3bae5946c485ef48846c150ef1d54 (patch) | |
| tree | cc81b61b21a864247b232a84cf59f6314a8837ab /tests | |
| parent | 28b7d44e2d29d14ce2b9b30adecdf1bff3a71bf6 (diff) | |
| download | sb-builder-1c1fb069f7f3bae5946c485ef48846c150ef1d54.tar.gz sb-builder-1c1fb069f7f3bae5946c485ef48846c150ef1d54.zip | |
Detail panes: navigation as a button on top, reflowed descriptions
Open in Hints and Open in Packages were plain links at the end of the
pane, below the fold on a long one. ui.nav_button() makes them buttons,
first in the pane; the UI guideline now says navigation buttons. The
Repository description drops slack-desc's 70-column breaks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_gui.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_gui.py b/tests/test_gui.py index 08df339..52e4ea7 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -655,13 +655,13 @@ class SmokeTest(unittest.TestCase): self.assertEqual(tab.proxy.rowCount(), 1) tab.table.setCurrentIndex(tab.proxy.index(0, 0)) self.assertIn("Updated for version 1.0.", tab.detail.text()) - tab.link.linkActivated.emit("#") + tab.open_packages_btn.click() self.assertIs(w.tabs.currentWidget(), w.packages_tab) self.assertEqual(w.packages_tab.query.text(), "foo") tab.table.setCurrentIndex(tab.proxy.index(0, 0)) tab.reload() # the reset drops the current row: no stale pane or link self.wait(lambda: tab.stats.text() != "loading…") - self.assertTrue(tab.link.isHidden()) + self.assertTrue(tab.open_packages_btn.isHidden()) self.assertEqual(tab.detail.text(), "") def test_repository_missing(self): @@ -865,7 +865,7 @@ class SmokeTest(unittest.TestCase): tab = w.open_packages() tab.table.setCurrentIndex(tab.proxy.index(1, 1)) # foo, has a hint self.assertTrue(tab.open_hint_btn.isVisibleTo(tab)) - tab.open_hint_btn.linkActivated.emit("#") + tab.open_hint_btn.click() self.assertIs(w.tabs.currentWidget(), w.hints_tab) tab.model.checked.update({"foo"}) tab.update_count() |
