update lots of stuff
Some checks failed
CI / check (push) Has been cancelled

This commit is contained in:
2026-06-19 10:41:32 +02:00
parent 5e5fc53dde
commit 6114ce440d
7 changed files with 299 additions and 104 deletions

View File

@@ -37,7 +37,7 @@ async function expandTo(c: HTMLElement, ...folders: string[]): Promise<void> {
}
describe('Pass on to Agent', () => {
it('inserts "<note> <path:line>" via the agentPaste event', async () => {
it('inserts "<note> => <path:line>" via the agentPaste event', async () => {
const received: string[] = []
const handler = (e: Event): void => { received.push((e as CustomEvent<string>).detail) }
window.addEventListener('agentPaste', handler)
@@ -57,7 +57,7 @@ describe('Pass on to Agent', () => {
})
fireEvent.contextMenu(ta)
const pass = await waitFor(() => {
const item = find(c, '.ctx-item', 'Pass on to Agent')
const item = find(c, '.ctx-item', 'Pass on reference')
if (!item) throw new Error('menu not open')
return item
})
@@ -70,7 +70,7 @@ describe('Pass on to Agent', () => {
fireEvent.change(input, { target: { value: 'look here' } })
fireEvent.keyDown(input, { key: 'Enter' })
await waitFor(() => expect(received.length).toBeGreaterThan(0))
expect(received[0]).toBe('look here public/assets/store.js:1')
expect(received[0]).toBe('look here => public/assets/store.js:1')
} finally {
window.removeEventListener('agentPaste', handler)
}