From 3ad813187984e2f562aaee966af3037ccd210340 Mon Sep 17 00:00:00 2001 From: Andreas Tzionis Date: Sun, 5 Nov 2023 14:32:20 +0200 Subject: [PATCH] worked on tests --- e2e/dev/dev.spec.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/e2e/dev/dev.spec.ts b/e2e/dev/dev.spec.ts index fe933316..ac1ce96b 100644 --- a/e2e/dev/dev.spec.ts +++ b/e2e/dev/dev.spec.ts @@ -9,14 +9,17 @@ test('should contain the editor', async ({ page }) => { test.skip('should drap and drop a component', async ({ page }) => { await page.goto('/') + // open category + await page.click('#banner') + // add component - const imagePath = '/api/builder/handle?type=asset&path=/themes/hyperui/Banner1/preview.png' - await page.dragAndDrop(`img[src='${imagePath}']`, '#editor > div') - await expect(page.locator('#editor > div')).toHaveCount(1) + const imagePath = '/api/builder/handle?type=asset&path=/themes/HyperUI/Banner1/preview.png' + await page.dragAndDrop(`img[src='${imagePath}']`, '#editor') + await page.isVisible("text='Understand User Flow'") // remove the component await page.hover('text=Understand') - await page.click('#editor a:nth-child(4)') + // await page.click('#delete') }) // TODO fix