diff --git a/frontend/src/pages/quick-start/index.test.tsx b/frontend/src/pages/quick-start/index.test.tsx index ab996ec0..02638e47 100644 --- a/frontend/src/pages/quick-start/index.test.tsx +++ b/frontend/src/pages/quick-start/index.test.tsx @@ -498,6 +498,14 @@ describe('QuickStartPage', () => { ) }) + it('keeps browser form history out of the creation composer', () => { + renderAt('/quick-start', serviceFor(null)) + const composer = screen.getByRole('textbox', { name: '创作指令' }) + + expect(composer.getAttribute('autocomplete')).toBe('off') + expect(composer.closest('form')?.getAttribute('autocomplete')).toBe('off') + }) + it('keeps the entry and run canvases at least viewport height', async () => { const entry = renderAt('/quick-start', serviceFor(null)) expect(entry.getByLabelText('创作指令').closest('section')?.className).toContain( diff --git a/frontend/src/pages/quick-start/index.tsx b/frontend/src/pages/quick-start/index.tsx index 1b4b561b..ea3a7858 100644 --- a/frontend/src/pages/quick-start/index.tsx +++ b/frontend/src/pages/quick-start/index.tsx @@ -804,6 +804,7 @@ function QuickStartInput({ >