fix flacky auto complete test (#1443)

This commit is contained in:
Kurt Hutten
2024-02-19 12:15:57 +11:00
committed by GitHub
parent c6005660c8
commit 3377923dcb

View File

@ -367,6 +367,7 @@ test('Auto complete works', async ({ page }) => {
await page.keyboard.type(' |> startProfi')
// expect there be a single auto complete option that we can just hit enter on
await expect(page.locator('.cm-completionLabel')).toBeVisible()
await page.waitForTimeout(100)
await page.keyboard.press('Enter') // accepting the auto complete, not a new line
await page.keyboard.type('([0,0], %)')