Browse Source

fix: not e2e test clipboard

Andelf 3 years ago
parent
commit
a87e5ea0fa
1 changed files with 0 additions and 24 deletions
  1. 0 24
      e2e-tests/editor.spec.ts

+ 0 - 24
e2e-tests/editor.spec.ts

@@ -168,27 +168,3 @@ test.skip('next block and cursor position', async ({ page, block }) => {
 //     await page.keyboard.press('Control+Shift+v')
 //   }
 // })
-
-test('cut blocks and paste', async ({ page, block }) => {
-  await createRandomPage(page)
-
-  for (let i = 0; i < 5; i++) {
-    await block.mustType(i.toString())
-    await block.enterNext()
-  }
-
-  // shift+up select 3 blocks
-  await page.keyboard.down('Shift')
-  await page.keyboard.press('ArrowUp')
-  await page.keyboard.press('ArrowUp')
-  await page.keyboard.press('ArrowUp')
-  await page.keyboard.up('Shift')
-
-  await block.waitForSelectedBlocks(3)
-
-  await page.keyboard.press('Meta+x')
-
-  await page.keyboard.press('Meta+v')
-
-  await expect(page.locator('.ls-block')).toHaveCount(6, { timeout: 1000 })
-})