test(desktop): follow the model and path menu labels to sentence case

These query by visible text, so the casing pass moved the labels out
from under them.
This commit is contained in:
Brooklyn Nicholson
2026-08-28 22:31:23 -05:00
committed by brooklyn!
parent 4054d54926
commit 36620578f0
4 changed files with 5 additions and 5 deletions
@@ -81,7 +81,7 @@ describe('CodingStatusRow', () => {
// Painted tildified, copied raw.
expect(screen.getByText('~/www/repo')).toBeTruthy()
const copy = screen.getByRole('button', { name: 'Copy Path' })
const copy = screen.getByRole('button', { name: 'Copy path' })
fireEvent.click(copy)
@@ -101,7 +101,7 @@ describe('the catalog owns model curation', () => {
renderMenu()
await screen.findByText(/Gemini 3\.1 Pro/i)
fireEvent.click(screen.getByText('Edit Models…'))
fireEvent.click(screen.getByText('Edit models…'))
expect($modelVisibilityOpen.get()).toBe(true)
})
@@ -431,7 +431,7 @@ describe('ModelMenuPanel provider collapse', () => {
await content.findByText(/Glm 4\.5 Air/i)
fireEvent.click(await content.findByText('Refresh Models'))
fireEvent.click(await content.findByText('Refresh models'))
await vi.waitFor(() => {
expect(onSelectModel).toHaveBeenCalledWith({
@@ -450,7 +450,7 @@ describe('ModelMenuPanel provider collapse', () => {
const { content, onSelectModel } = renderPanel()
await content.findByText(/Deepseek V4 Pro/i)
fireEvent.click(await content.findByText('Refresh Models'))
fireEvent.click(await content.findByText('Refresh models'))
await vi.waitFor(() => {
expect(getGlobalModelOptions).toHaveBeenCalledTimes(2)
@@ -524,7 +524,7 @@ describe('ModelMenuPanel refresh reconcile × guarded-switch confirm handshake',
const content = render(<ConfirmHarness requestGateway={requestGateway as never} />)
await content.findByText(/Glm 4\.5 Air/i)
fireEvent.click(await content.findByText('Refresh Models'))
fireEvent.click(await content.findByText('Refresh models'))
// The reconcile fired exactly ONE switch attempt and it came back
// confirm_required → the confirm toast is up, nothing retried silently.