chore: add test

pull/9192/head^2
Konstantinos Kaloutas 2023-04-18 18:15:31 +03:00 committed by Tienson Qin
parent 84cd21b46a
commit e10cb90395
1 changed files with 12 additions and 0 deletions

View File

@ -159,6 +159,18 @@ test('undo the delete action', async ({ page }) => {
await expect(page.locator('.logseq-tldraw .tl-line-container')).toHaveCount(1)
})
test('locked elements should not be removed', async ({ page }) => {
await page.keyboard.press('Escape')
await page.waitForTimeout(1000)
await page.click('.logseq-tldraw .tl-box-container:first-of-type')
await page.keyboard.press(`${modKey}+l`)
await page.keyboard.press('Delete')
await page.keyboard.press(`${modKey}+Shift+l`)
await expect(page.locator('.logseq-tldraw .tl-box-container')).toHaveCount(2)
})
test('move arrow to back', async ({ page }) => {
await page.keyboard.press('Escape')
await page.waitForTimeout(1000)