mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
Apply remaining changes
This commit is contained in:
1 parent
f01fa4ab2f
commit
86794e896b
2 files changed
+14
-1
No files matched your search
@@ -215,6 +215,9 @@ describe('PromptInput composer layout', () => {
|
||||
expect(keyButtons()).toHaveLength(1)
|
||||
expect(keysRow()).toContainElement(keyButtons()[0])
|
||||
expect(inputRow()).not.toContainElement(keyButtons()[0])
|
||||
expect(screen.getByRole('button', { name: 'cmd /' })).toBeInTheDocument()
|
||||
expect(screen.getByRole('button', { name: 'mention @' })).toBeInTheDocument()
|
||||
expect(screen.getByRole('button', { name: 'bash !' })).toBeInTheDocument()
|
||||
expect(screen.getByRole('button', { name: /^Session config: .*Claude Sonnet 4\.5/ })).toBe(config)
|
||||
})
|
||||
|
||||
|
||||
@@ -86,7 +86,10 @@ describe.each([
|
||||
|
||||
const trigger = await configTrigger()
|
||||
expect(trigger).not.toHaveAttribute('data-active')
|
||||
if (mobile) expect(trigger).not.toHaveClass('bg-highlight')
|
||||
if (mobile) {
|
||||
expect(trigger).not.toHaveClass('bg-highlight')
|
||||
expect(trigger).toHaveClass('size-11', 'p-0')
|
||||
}
|
||||
|
||||
await openConfig(user)
|
||||
expect(await screen.findByRole('menuitemcheckbox', { name: /Accept all permissions/ })).toHaveAttribute('aria-checked', 'false')
|
||||
@@ -410,6 +413,13 @@ describe.each([
|
||||
expect(screen.getByLabelText('Memory (GiB)')).toHaveValue(2)
|
||||
})
|
||||
|
||||
it('prefills the dialog from the effective values without an override', async () => {
|
||||
await openResources({ sandbox: { resources: null, effectiveResources: { cpus: 2, memoryMib: 4096 } } })
|
||||
|
||||
expect(screen.getByLabelText('CPUs')).toHaveValue(2)
|
||||
expect(screen.getByLabelText('Memory (GiB)')).toHaveValue(4)
|
||||
})
|
||||
|
||||
it('saves the entered resources', async () => {
|
||||
const { fetchFake, user } = await openResources({
|
||||
sandbox: { resources: null, effectiveResources: { cpus: 2, memoryMib: 4096 } },
|
||||
|
||||
Reference in new issue
Block a user