Remove teacher conversation discussion components
This commit is contained in:
1 parent
592920da06
commit
317def7912
9 files changed
+150
-371
No files matched your search
@@ -1879,6 +1879,12 @@ test('project consultations preserve student drafts and switch between work and
|
||||
await expect(composer).toHaveValue('保留我的草稿');
|
||||
await teacher.getByRole('button',{name:'我也说不清,你带我看看',exact:true}).click();
|
||||
await expect(teacher.getByText('你最近做的哪一步,让你停下来想了一会儿?')).toBeVisible();
|
||||
await expect(teacher.getByTestId('teacher-discussion')).toHaveCount(0);
|
||||
const consultationSends = (await readState(electronApp)).captured.filter(item => item.path.endsWith('/messages') && item.method === 'POST');
|
||||
for (const sent of consultationSends) {
|
||||
expect(sent.body).not.toHaveProperty('presentation');
|
||||
expect(sent.body).not.toHaveProperty('discussion');
|
||||
}
|
||||
await expect(teacher.getByRole('textbox',{name:'向智能体提问'})).toHaveValue('还没说完的困惑');
|
||||
await page.getByRole('tab',{name:'操作对话',exact:true}).click();
|
||||
await expect(composer).toBeVisible();
|
||||
|
||||
Reference in new issue
Block a user