fix: keep maintenance results concise and catalog readable
This commit is contained in:
1 parent
223655fe00
commit
2587d33c5a
5 files changed
+45
-18
No files matched your search
@@ -31,3 +31,13 @@ def test_long_status_does_not_expand_the_window(qtbot, tmp_path):
|
||||
qtbot.wait(20)
|
||||
assert window.height() <= 650
|
||||
assert window.status_label.height() <= window.status_label.fontMetrics().lineSpacing() * 3 + 4
|
||||
|
||||
|
||||
def test_failure_detail_keeps_catalog_name_readable(qtbot, tmp_path, monkeypatch):
|
||||
from test_ui_filters import load_window
|
||||
window = load_window(qtbot, tmp_path, monkeypatch)
|
||||
window.resize(1000, 650); window.show()
|
||||
window.cbb_table.item(0, 3).setText('BackAnnotate: ' + 'long exception ' * 100)
|
||||
qtbot.wait(20)
|
||||
assert window.cbb_table.columnWidth(0) >= 200
|
||||
assert window.cbb_table.horizontalHeader().length() <= window.cbb_table.viewport().width()
|
||||
Reference in new issue
Block a user