fix: align teacher and operation composer heights
This commit is contained in:
1 parent
72218e0c79
commit
66cad87074
7 files changed
+141
-13
No files matched your search
@@ -2018,6 +2018,17 @@ test('incomplete consultation replies retry only on click and preserve both draf
|
||||
const teacher = page.getByTestId('teacher-chat-panel');
|
||||
const draft = teacher.getByRole('textbox', { name: '向智能体提问' });
|
||||
await draft.fill('现在项目是什么阶段?');
|
||||
await page.getByRole('tab', { name: '操作对话', exact: true }).click();
|
||||
await expect(mainDraft).toBeVisible();
|
||||
const [operationBox, teacherBox] = await Promise.all([
|
||||
page.getByTestId('coding-message-composer').locator('.chat-composer-surface').boundingBox(),
|
||||
teacher.locator('.consultation-composer').boundingBox(),
|
||||
]);
|
||||
expect(operationBox).not.toBeNull();
|
||||
expect(teacherBox).not.toBeNull();
|
||||
expect(Math.abs(operationBox!.height - teacherBox!.height)).toBeLessThanOrEqual(1);
|
||||
expect(Math.abs(operationBox!.y + operationBox!.height - teacherBox!.y - teacherBox!.height)).toBeLessThanOrEqual(1);
|
||||
await expect(teacher.getByRole('button', { name: /添加图片|添加文件|老师模型/ })).toHaveCount(0);
|
||||
await teacher.getByRole('button', { name: '提问', exact: true }).click();
|
||||
await expect(teacher.getByRole('status')).toHaveText('这次回复未能完整显示');
|
||||
await expect(teacher.getByTestId('teacher-reply')).toHaveCount(0);
|
||||
|
||||
Reference in new issue
Block a user