mirror of https://github.com/logseq/logseq
chore: add test
parent
84cd21b46a
commit
e10cb90395
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue