feat: update Makelore modules and conversations
This commit is contained in:
@@ -52,12 +52,11 @@ describe('ChatCommandDialogs', () => {
|
||||
expect(screen.getByRole('button', { name: '重命名' })).toBeDisabled();
|
||||
});
|
||||
|
||||
it('returns the exact selected message for timeline navigation and fork modes', () => {
|
||||
it('returns the exact selected message for timeline navigation', () => {
|
||||
const onSelect = vi.fn();
|
||||
const { rerender } = render(
|
||||
<ChatCommandTimelineDialog
|
||||
open
|
||||
mode="timeline"
|
||||
entries={entries}
|
||||
onSelect={onSelect}
|
||||
onCancel={vi.fn()}
|
||||
@@ -67,19 +66,6 @@ describe('ChatCommandDialogs', () => {
|
||||
fireEvent.click(screen.getByRole('button', { name: /First answer/ }));
|
||||
expect(onSelect).toHaveBeenLastCalledWith('assistant-1');
|
||||
|
||||
rerender(
|
||||
<ChatCommandTimelineDialog
|
||||
open
|
||||
mode="fork"
|
||||
entries={entries}
|
||||
onSelect={onSelect}
|
||||
onCancel={vi.fn()}
|
||||
/>,
|
||||
);
|
||||
|
||||
expect(
|
||||
screen.getByRole('heading', { name: '选择分叉位置' }),
|
||||
).toBeInTheDocument();
|
||||
fireEvent.click(screen.getByRole('button', { name: /First prompt/ }));
|
||||
expect(onSelect).toHaveBeenLastCalledWith('user-1');
|
||||
});
|
||||
@@ -91,7 +77,6 @@ describe('ChatCommandDialogs', () => {
|
||||
<textarea aria-label="Composer" />
|
||||
<ChatCommandTimelineDialog
|
||||
open={false}
|
||||
mode="timeline"
|
||||
entries={entries}
|
||||
onSelect={vi.fn()}
|
||||
onCancel={onCancel}
|
||||
@@ -106,7 +91,6 @@ describe('ChatCommandDialogs', () => {
|
||||
<textarea aria-label="Composer" />
|
||||
<ChatCommandTimelineDialog
|
||||
open
|
||||
mode="timeline"
|
||||
entries={entries}
|
||||
onSelect={vi.fn()}
|
||||
onCancel={onCancel}
|
||||
@@ -130,7 +114,6 @@ describe('ChatCommandDialogs', () => {
|
||||
<textarea aria-label="Composer" />
|
||||
<ChatCommandTimelineDialog
|
||||
open={false}
|
||||
mode="timeline"
|
||||
entries={entries}
|
||||
onSelect={vi.fn()}
|
||||
onCancel={onCancel}
|
||||
|
||||
Reference in New Issue
Block a user