chore: add test

This commit is contained in:
Konstantinos Kaloutas
2023-06-09 16:44:54 +03:00
committed by Gabriel Horner
parent e14123afc0
commit 6827fa37af

View File

@@ -492,4 +492,14 @@ test('New page should have the correct name', async ({ page }) => {
page.locator('.tl-logseq-portal-header a').click()
await expect(page.locator('.ls-page-title')).toContainText('My page')
})
test('Renaming a page to an existing whiteboard name should be prohibited ', async ({ page }) => {
await page.click('.ls-page-title .page-title')
await page.waitForSelector('input[type="text"]')
await page.fill('input[type="text"]', '')
await page.type('.title input', "My embedded whiteboard")
await page.keyboard.press('Enter')
await expect(page.locator('.page-title input')).toHaveValue('My page')
})