enso/app/gui/integration-test/project-view/suggestionUpdates.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
342 B
TypeScript
Raw Normal View History

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 })
}