1
0
mirror of synced 2025-12-19 18:10:59 -05:00

another round of AI Search feedback fixes (#54394)

This commit is contained in:
Evan Bonsignori
2025-02-13 12:24:56 -08:00
committed by GitHub
parent 7545d5ff1e
commit be99464cfb
14 changed files with 93 additions and 87 deletions

View File

@@ -115,15 +115,14 @@ test('open new search, and get auto-complete results', async ({ page }) => {
await expect(listGroup).toBeVisible()
let listItems = listGroup.locator('li')
await expect(listItems).toHaveCount(5)
await expect(listItems).toHaveCount(4)
// Top 5 queries from queries.json fixture's 'topQueries'
// Top queries from queries.json fixture's 'topQueries'
let expectedTexts = [
'What is GitHub and how do I get started?',
'What is GitHub Copilot and how do I get started?',
'How do I connect to GitHub with SSH?',
'How do I generate a personal access token?',
'How do I clone a repository?',
]
for (let i = 0; i < expectedTexts.length; i++) {
await expect(listItems.nth(i)).toHaveText(expectedTexts[i])
@@ -136,6 +135,8 @@ test('open new search, and get auto-complete results', async ({ page }) => {
// Type the text "rest" into the search input
await searchInput.fill('rest')
// For for 1 second for the suggestions to load
await page.waitForTimeout(1000)
// Ask AI suggestions
listGroup = page.getByTestId('ai-autocomplete-suggestions')