HEL-783: repair readable dialogue, birth explanations and complete real page layouts

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
白栖知
2026-10-22 17:55:05 +08:00
co-authored by multica-agent
parent f6614d4bf9
commit db571ba204
52 changed files with 1200 additions and 93 deletions
+4 -4
View File
@@ -17,7 +17,7 @@ from test_api import live_server, make_app # noqa: E402
from cybergril.api.app import create_app # noqa: E402
CONTROLLED = '--controlled' in sys.argv
OUT = ROOT/'docs/r1' / ('controlled' if CONTROLLED else '.')
OUT = ROOT/'docs/rework' / ('r1-regression' if CONTROLLED else 'live-gateway')
OUT.mkdir(parents=True, exist_ok=True)
results = {'checks': [], 'real_dialogue': [], 'console_errors': []}
@@ -41,7 +41,7 @@ def send(page, text, source='real gateway'):
click(page, '发送')
expect(page.get_by_role('button', name='取消本轮回复')).not_to_be_visible(timeout=65000)
assert not page.locator('.dialog .failed').count(), page.locator('.dialog').inner_text()
reply = page.locator('.dialog .her').inner_text()
reply = page.locator('.dialog .her .current-text').inner_text()
results['real_dialogue'].append({'input':text,'reply':reply,'source':'controlled provider' if CONTROLLED else source})
print('CONTROLLED_REPLY' if CONTROLLED else 'REAL_REPLY', reply, flush=True)
return reply
@@ -61,7 +61,7 @@ try:
page.goto(url)
expect(page.get_by_text('1 / 4 · 出生资料')).to_be_visible()
page.get_by_label('她的名字', exact=True).fill('星河')
page.get_by_label('出生日期', exact=True).fill('2000-10-18')
page.get_by_label('出生日期(公历)', exact=True).fill('2000-10-18')
click(page,'下一步')
expect(page.get_by_text('出生底色 · 真实排盘')).to_be_visible()
assert real_app.state.store.query_one('SELECT count(*) n FROM companion')['n']==0
@@ -153,7 +153,7 @@ try:
shot(mp,'mobile-relation-fog')
nav(mp,'此刻'); mp.reload()
expect(mp.locator('.meta')).to_contain_text('恋人')
nav(mp,'日子'); expect(mp.get_by_text('尚未接通',exact=True)).to_be_visible()
nav(mp,'日子'); expect(mp.locator('.pane[aria-label="日子"] .empty').first).to_contain_text('还没有可展示的生活记录')
assert mp.locator('.demo').count()==0
passed('mobile: relation cancel/confirm/save restores from server; unfinished life has no demo records/console')
# Model timeout and abrupt SSE are separately exercised by deterministic backend/unit tests.