Files
AFFiNE-Mirror/tests/affine-local/e2e/blocksuite/code/crud.spec.ts
2025-01-27 14:21:41 +09:00

15 lines
508 B
TypeScript

import { test } from '@affine-test/kit/playwright';
import { expect } from '@playwright/test';
import { initCodeBlockByOneStep } from './utils';
test.describe('Code Block Autocomplete Operations', () => {
test('angle brackets are not supported', async ({ page }) => {
// open the home page and insert the code block
await initCodeBlockByOneStep(page);
await page.keyboard.type('<');
const codeUnit = page.locator('affine-code-unit');
await expect(codeUnit).toHaveText('<');
});
});