fix(web): minor bug fixes (#9696)

Co-authored-by: Mirone <Saul-Mirone@outlook.com>
This commit is contained in:
Oleg
2025-01-27 06:21:41 +01:00
committed by GitHub
parent 73b4437081
commit e3fac97b9b
6 changed files with 47 additions and 6 deletions

View 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('<');
});
});