perf(ui): render rule models and create detail views on demand
This commit is contained in:
1 parent
84d8f9c7f5
commit
ce574ddb44
18 files changed
+693
-170
No files matched your search
@@ -76,7 +76,7 @@ def test_all_steps_survive_reopening_completed_task(qtbot, tmp_path):
|
||||
qtbot.waitUntil(lambda: not window._loading and not window._context_query.busy)
|
||||
qtbot.waitUntil(lambda: not window._log_presenter.query.busy)
|
||||
assert window.run_panel.toggle_log_button.isChecked()
|
||||
assert window.run_panel.log_view.toPlainText().count('位号 R1:OLD → NEW') == 1
|
||||
assert window._log_presenter.log_text.count('位号 R1:OLD → NEW') == 1
|
||||
window.close(); store.close()
|
||||
store = TaskStore(tmp_path / 'tasks.db')
|
||||
service = TaskCenterService(store, configure_logging(data))
|
||||
@@ -88,7 +88,7 @@ def test_all_steps_survive_reopening_completed_task(qtbot, tmp_path):
|
||||
window._show_task_log()
|
||||
qtbot.waitUntil(lambda: not window._log_presenter.query.busy)
|
||||
assert window.run_panel.toggle_log_button.isChecked()
|
||||
text = window.run_panel.log_view.toPlainText()
|
||||
text = window._log_presenter.log_text
|
||||
assert '位号 R1:OLD → NEW' in text
|
||||
assert '位号 C2:OLD2 → NEW2' in text
|
||||
# Switching to a draft clears the previous task's modification details.
|
||||
@@ -96,7 +96,7 @@ def test_all_steps_survive_reopening_completed_task(qtbot, tmp_path):
|
||||
window.open_task(other.task_id)
|
||||
qtbot.waitUntil(lambda: not window._loading and not window._context_query.busy)
|
||||
qtbot.waitUntil(lambda: not window._log_presenter.query.busy)
|
||||
assert '位号 R1' not in window.run_panel.log_view.toPlainText()
|
||||
assert '位号 R1' not in window._log_presenter.log_text
|
||||
window.close(); store.close()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user