fix(cmdk): update search-modal assertions to the renamed New chat label (#6549)

#6543 renamed the ask-Sim label to sentence case but left the two assertions
expecting 'New Chat', which has been failing Lint and Test on staging for
every PR since.
This commit is contained in:
Waleed
2026-08-11 11:21:25 -07:00
committed by GitHub
parent fee45e219b
commit 2f1bb5af8b
@@ -149,7 +149,7 @@ describe('SearchModal', () => {
const askRow = document.querySelector<HTMLElement>('[cmdk-item]')
expect(document.querySelectorAll('[cmdk-item]')).toHaveLength(1)
expect(askRow?.textContent).toBe('New Chat: plan our Slack launch week')
expect(askRow?.textContent).toBe('New chat: plan our Slack launch week')
expect(askRow?.getAttribute('aria-selected')).toBe('true')
act(() => {
@@ -192,7 +192,7 @@ describe('SearchModal', () => {
new KeyboardEvent('keydown', { key: 'Tab', bubbles: true, cancelable: true })
)
})
expect(document.querySelector('[cmdk-item]')?.textContent).toBe('New Chat: rainbow')
expect(document.querySelector('[cmdk-item]')?.textContent).toBe('New chat: rainbow')
act(() => {
document