Skip to content

Commit

Permalink
Update e2e test for title change
Browse files Browse the repository at this point in the history
  • Loading branch information
abeatrix committed Mar 25, 2024
1 parent a51a08e commit a2e831d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions vscode/test/e2e/chat-atFile.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,15 @@ test.extend<ExpectedEvents>({
// Go back to the Cody chat tab
await page.getByRole('tab', { name: 'New Chat' }).click()

// Symbol empty state
// Symbol empty state shows tooltip to search for a symbol
await chatInput.fill('@#')
await expect(chatPanelFrame.getByRole('heading', { name: /No symbols found/ })).toBeVisible()
await expect(
chatPanelFrame.getByRole('heading', { name: /^Search for a symbol to include/ })
).toBeVisible()

// Symbol empty symbol results updates tooltip title to show no symbols found
await chatInput.fill('@#invalide')
await expect(chatPanelFrame.getByRole('heading', { name: /^No symbols found/ })).toBeVisible()

// Clicking on a file in the selector should autocomplete the file in chat input with added space
await chatInput.fill('@#fizzb')
Expand Down

0 comments on commit a2e831d

Please sign in to comment.