Files
kate522andClaude Opus 5 264015b7e9 feat(admin): streamline ticket management with dialogs
Move on-behalf ticket creation into a header dialog and load ticket handling on demand. Reuse the admin REST write path, preserve drafts and filters, and cover dialog and server boundaries with regression tests.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-10-31 11:25:56 +08:00

15 lines
534 B
JavaScript

'use strict';
const assert = require('node:assert/strict');
const { execFileSync } = require('node:child_process');
const path = require('node:path');
const test = require('node:test');
const root = path.resolve(__dirname, '../..');
const harness = path.join(root, 'tests', 'admin', 'ticket-admin-rest-harness.php');
test('工单管理 REST 校验与通知边界通过 PHP stub harness', () => {
const output = execFileSync('php', [harness], { encoding: 'utf8' });
assert.match(output, /Ticket admin REST harness passed/);
});