enso/app/gui2/e2e/suggestionUpdates.ts
Kaz Wesley 27f7d14140
Fix collapsed function renaming (#10884)
Fix #10763 and related issues:
- Fix bug preventing `WidgetFunctionName` from matching
- Fix missing icon when `WidgetFunctionName` matches
- Add testing for `WidgetFunctionName`
- Fix `WidgetFunctionName` padding
2024-08-28 11:05:19 +00:00

8 lines
342 B
TypeScript

import type { Page } from '@playwright/test'
import * as lsTypes from 'ydoc-shared/languageServerTypes/suggestions'
/** Add an entry to the suggestion database. */
export async function mockSuggestion(page: Page, update: lsTypes.SuggestionEntry) {
await page.evaluate(({ update }) => (window as any)._mockSuggestion(update), { update })
}