mirror of
https://github.com/enso-org/enso.git
synced 2024-12-24 02:23:28 +03:00
27f7d14140
Fix #10763 and related issues: - Fix bug preventing `WidgetFunctionName` from matching - Fix missing icon when `WidgetFunctionName` matches - Add testing for `WidgetFunctionName` - Fix `WidgetFunctionName` padding
8 lines
342 B
TypeScript
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 })
|
|
}
|