fix: e2e test

pull/9228/head
Konstantinos Kaloutas 2023-04-26 16:40:03 +03:00
parent 4a1c8ec3e8
commit e06e5eda3c
1 changed files with 3 additions and 4 deletions

View File

@ -80,13 +80,12 @@ test('update whiteboard title', async ({ page }) => {
})
test('draw a rectangle', async ({ page }) => {
await page.keyboard.press('Escape')
await page.waitForTimeout(1000)
const canvas = await page.waitForSelector('.logseq-tldraw')
const bounds = (await canvas.boundingBox())!
await page.keyboard.press('9')
await page.click('.tl-geometry-tools-pane-anchor')
await page.waitForTimeout(100)
await page.click('.tl-geometry-toolbar [data-tool="box"]')
await page.mouse.move(bounds.x + 5, bounds.y + 5)
await page.mouse.down()