From 1c1fb069f7f3bae5946c485ef48846c150ef1d54 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 21 Oct 2026 10:09:46 +0200 Subject: 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 --- tests/test_gui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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() -- cgit v1.2.3