another round of AI Search feedback fixes (#54394)
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user