fix(web): minor bug fixes (#9696)
Co-authored-by: Mirone <Saul-Mirone@outlook.com>
This commit is contained in:
14
tests/affine-local/e2e/blocksuite/code/crud.spec.ts
Normal file
14
tests/affine-local/e2e/blocksuite/code/crud.spec.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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('<');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user