paste.spec.ts 637 B

123456789101112131415
  1. import { expect } from '@playwright/test'
  2. import { test } from './fixtures'
  3. import { createRandomPage, enterNextBlock, lastBlock, modKey } from './utils'
  4. import { dispatch_kb_events } from './util/keyboard-events'
  5. import * as kb_events from './util/keyboard-events'
  6. test('property text deleted on Ctrl+C when its value mixes [[link]] and other text #9100', async ({ page, block }) => {
  7. await createRandomPage(page)
  8. await block.mustType('category:: [[A]] and [[B]] test')
  9. await page.keyboard.press(modKey + '+c', { delay: 10 })
  10. await expect(page.locator('textarea >> nth=0')).toHaveValue('category:: [[A]] and [[B]] test')
  11. })