refactor(gui): remove duplicate app header title

This commit is contained in:
chengma
2026-07-23 14:43:20 +08:00
parent e079a65909
commit 08f0bff1fa
4 changed files with 25 additions and 11 deletions
+16
View File
@@ -634,6 +634,22 @@ class GuiTests(TempDirMixin, unittest.TestCase):
self.addCleanup(window.close)
self.assertEqual(gui.display_name(), window.windowTitle())
self.assertIsNone(window.findChild(QLabel, "appHeaderTitle"))
subscription_label = window.findChild(QLabel, "subscriptionStatusLabel")
self.assertIsNotNone(subscription_label)
header = window.centralWidget().layout().itemAt(0).widget()
self.assertEqual("appHeader", header.objectName())
self.assertEqual("会员状态栏", header.accessibleName())
margins = header.layout().contentsMargins()
self.assertEqual(
(18, 4, 18, 2),
(
margins.left(),
margins.top(),
margins.right(),
margins.bottom(),
),
)
self.assertEqual(6, window.tabs.count())
self.assertEqual(
[