mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-13 05:00:45 +08:00
fix(feishu): align menu number-fallback test with emoji label and bind-flows
The menu card renders the repair fallback as **5**<emoji>修复, so the two assertions that matched **5**修复 are broadened to tolerate the marker emoji. The number-reply on a later session page now reads the last text confirmation instead of assuming the last outgoing message is text, since #bindSession refreshes the menu card after binding. Rebuild bundle.
This commit is contained in:
parent
722a2f8c58
commit
7a6e84cb89
7 changed files with 212 additions and 147 deletions
|
|
@ -43,15 +43,15 @@ function forms(value, result = []) {
|
|||
|
||||
test('menu exposes the increased command set and keeps repair number-only', () => {
|
||||
const card = JSON.parse(menuCard());
|
||||
assert.match(JSON.stringify(card), /6 · 修复卡片按钮/);
|
||||
assert.match(JSON.stringify(card), /\*\*5\*\*\S*修复/);
|
||||
const actions = buttons(card).flatMap((button) => (
|
||||
button.behaviors?.map((behavior) => behavior?.value?.action) ?? []
|
||||
));
|
||||
assert.deepEqual(actions, [
|
||||
'new', 'sessions', 'workspaces', 'stop', 'compact',
|
||||
'watchlist', 'status', 'settings', 'help',
|
||||
'status', 'help', 'settings',
|
||||
]);
|
||||
// 修复不占位按钮:仅通过数字兜底「6」触发(见 bridge)
|
||||
// 修复不占位按钮:仅通过数字兜底「5🔧」触发(见 bridge)
|
||||
assert.equal(actions.includes('repair'), false);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue