aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_gui.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_gui.py')
-rw-r--r--tests/test_gui.py6
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()