mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 14:14:55 +00:00
chore: add test
This commit is contained in:
committed by
Gabriel Horner
parent
e14123afc0
commit
6827fa37af
@@ -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')
|
||||
})
|
||||
Reference in New Issue
Block a user