fix: not e2e test clipboard

This commit is contained in:
Andelf
2022-04-21 16:58:17 +08:00
committed by Tienson Qin
parent 274639fe78
commit a87e5ea0fa

View File

@@ -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 })
})