feat-ui-operation-history-and-durable-execution
Core regression / Python core and release configuration (push) Successful in 17s
Core regression / JavaScript syntax (push) Successful in 3s
Core regression / Python core and release configuration (pull_request) Successful in 16s
Core regression / JavaScript syntax (pull_request) Successful in 3s

This commit is contained in:
阿白叔 committed 2026-11-03 17:54:17 +08:00
1 parent 4874c7e95a
commit cf90ced825
44 files changed
+3165 -92

No files matched your search

+36
View File
@@ -30,6 +30,7 @@ def main():
parser=argparse.ArgumentParser(description=__doc__)
parser.add_argument('--output',type=Path,default=Path('build/acrylic-acceptance'))
parser.add_argument('--webengine-roundtrip',action='store_true')
parser.add_argument('--history',action='store_true')
args=parser.parse_args();out=args.output.resolve();out.mkdir(parents=True,exist_ok=True)
app=QApplication([]);app.setFont(QFont('Microsoft YaHei UI',9))
def settle(seconds=.2):
@@ -204,6 +205,41 @@ def main():
assert report['force_stop_available_while_pausing']
capture('native-app-pausing-controls')
window._finish_run();window._update_gates()
if args.history:
from PySide6.QtCore import QTimer
from PySide6.QtTest import QTest
from PySide6.QtWidgets import QMessageBox
window.history_action.trigger()
panel=window.history_panel
def wait_history():
deadline=time.monotonic()+10
while time.monotonic()<deadline:
settle(.05)
if (not panel._query.busy and not panel._clear_query.busy and panel._worker is None
and not panel._search_timer.isActive()):return
raise AssertionError('History operation did not finish')
wait_history()
assert panel.table.rowCount()>0
capture('native-app-history')
panel.search.setText('4100-CA0000-T0');wait_history()
assert panel.table.rowCount()>0
panel.table.selectRow(0)
assert '4100-CA0000-T0' in panel.details.toPlainText()
capture('native-app-history-search')
panel.search.clear();wait_history()
def confirm_history():
modal=QApplication.activeModalWidget()
if not isinstance(modal,QMessageBox):
QTimer.singleShot(100,confirm_history);return
modal.grab().save(str(out/'native-app-history-clear-confirm.png'))
QTest.mouseClick(modal.button(QMessageBox.StandardButton.Yes),Qt.MouseButton.LeftButton)
QTimer.singleShot(100,confirm_history)
panel.clear_button.click();wait_history()
assert panel.table.rowCount()==0
assert len(service.tasks())==2
capture('native-app-history-cleared')
report['history_search_clear_and_task_preservation']=True
window.task_center_action.trigger();settle(.2)
window.project_options_button.setChecked(True);settle(.2)
report['options_exposed']=window.run_panel.copy_value_check.isVisible()
window.plan_panel.discard_all();window.close();settle(.3);store.close();logging.shutdown()