Skip to content

Commit

Permalink
fixed react test
Browse files Browse the repository at this point in the history
  • Loading branch information
LiveDuo committed Nov 6, 2023
1 parent d3395ec commit fae8f0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/dev-react/dev.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test('should drap and drop a component', async ({ page }) => {
await page.click('text=BANNER')

// add component
const imagePath = 'http://localhost:12785/api/builder/handle?type=asset&path=/themes/hyperui/Banner1/preview.png'
const imagePath = '/api/builder/handle?type=asset&path=/themes/hyperui/Banner1/preview.png'
await page.dragAndDrop(`img[src='${imagePath}']`, '#editor')

Check failure on line 16 in e2e/dev-react/dev.spec.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

[Desktop Chrome] › dev.spec.ts:8:5 › should drap and drop a component

1) [Desktop Chrome] › dev.spec.ts:8:5 › should drap and drop a component ───────────────────────── Error: page.dragAndDrop: Target closed =========================== logs =========================== waiting for locator('img[src=\'/api/builder/handle?type=asset&path=/themes/hyperui/Banner1/preview.png\']') ============================================================ 14 | // add component 15 | const imagePath = '/api/builder/handle?type=asset&path=/themes/hyperui/Banner1/preview.png' > 16 | await page.dragAndDrop(`img[src='${imagePath}']`, '#editor') | ^ 17 | await page.isVisible("text='Understand User Flow'") 18 | 19 | // remove the component at /home/runner/work/destack/destack/e2e/dev-react/dev.spec.ts:16:14

Check failure on line 16 in e2e/dev-react/dev.spec.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

[Desktop Chrome] › dev.spec.ts:8:5 › should drap and drop a component

1) [Desktop Chrome] › dev.spec.ts:8:5 › should drap and drop a component ───────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: page.dragAndDrop: Target closed =========================== logs =========================== waiting for locator('img[src=\'/api/builder/handle?type=asset&path=/themes/hyperui/Banner1/preview.png\']') ============================================================ 14 | // add component 15 | const imagePath = '/api/builder/handle?type=asset&path=/themes/hyperui/Banner1/preview.png' > 16 | await page.dragAndDrop(`img[src='${imagePath}']`, '#editor') | ^ 17 | await page.isVisible("text='Understand User Flow'") 18 | 19 | // remove the component at /home/runner/work/destack/destack/e2e/dev-react/dev.spec.ts:16:14

Check failure on line 16 in e2e/dev-react/dev.spec.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

[Desktop Firefox] › dev.spec.ts:8:5 › should drap and drop a component

2) [Desktop Firefox] › dev.spec.ts:8:5 › should drap and drop a component ──────────────────────── Error: page.dragAndDrop: Target closed =========================== logs =========================== waiting for locator('img[src=\'/api/builder/handle?type=asset&path=/themes/hyperui/Banner1/preview.png\']') ============================================================ 14 | // add component 15 | const imagePath = '/api/builder/handle?type=asset&path=/themes/hyperui/Banner1/preview.png' > 16 | await page.dragAndDrop(`img[src='${imagePath}']`, '#editor') | ^ 17 | await page.isVisible("text='Understand User Flow'") 18 | 19 | // remove the component at /home/runner/work/destack/destack/e2e/dev-react/dev.spec.ts:16:14
await page.isVisible("text='Understand User Flow'")

Expand All @@ -33,7 +33,7 @@ test('should add an image to renderer', async ({ page }) => {
await page.click('text=CTA')

// add component with image
const imagePath = 'http://localhost:12785/api/builder/handle?type=asset&path=/themes/hyperui/Cta1/preview.png'
const imagePath = '/api/builder/handle?type=asset&path=/themes/hyperui/Cta1/preview.png'
await page.dragAndDrop(`img[src='${imagePath}']`, '#editor')

// open image dialog
Expand Down

0 comments on commit fae8f0d

Please sign in to comment.