refactor(gui): remove duplicate app header title
This commit is contained in:
@@ -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(
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user