Files
AFFiNE-Mirror/packages/data-center/tests/local/search.spec.ts
T
2023-01-07 21:44:10 +08:00

24 lines
755 B
TypeScript

import assert from 'assert';
import { test, expect } from '@playwright/test';
import { getDataCenter, waitOnce } from '../utils.js';
import 'fake-indexeddb/auto';
test.describe('Search', () => {
test('search result', async () => {
// const dc = await getDataCenter();
// const workspace = await dc.load('test');
// assert(workspace);
// workspace.createPage('test');
// await waitOnce(workspace.signals.pageAdded);
// const page = workspace.getPage('test');
// assert(page);
// const text = new page.Text(page, 'hello world');
// const blockId = page.addBlock({ flavour: 'affine:paragraph', text });
// expect(workspace.search('hello')).toStrictEqual(
// new Map([[blockId, 'test']])
// );
});
});