Skip to content

Commit

Permalink
worked on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LiveDuo committed Nov 5, 2023
1 parent cadb755 commit 3ad8131
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions e2e/dev/dev.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ad8131

Please sign in to comment.