worked on components #306
Annotations
10 errors, 2 warnings, and 1 notice
[Desktop Chrome] › dev.spec.ts:3:5 › should contain craftjs renderer:
e2e/dev/dev.spec.ts#L5
1) [Desktop Chrome] › dev.spec.ts:3:5 › should contain craftjs renderer ──────────────────────────
Error: Timed out 5000ms waiting for expect(received).toHaveCount(expected) // deep equality
Expected: 1
Received: 0
Call log:
- expect.toHaveCount with timeout 5000ms
- waiting for locator('div.craftjs-renderer')
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
3 | test('should contain craftjs renderer', async ({ page }) => {
4 | await page.goto('/')
> 5 | await expect(page.locator('div.craftjs-renderer')).toHaveCount(1)
| ^
6 | })
7 |
8 | test('should drap and drop a component', async ({ page }) => {
at /home/runner/work/destack/destack/e2e/dev/dev.spec.ts:5:54
|
[Desktop Chrome] › dev.spec.ts:3:5 › should contain craftjs renderer:
e2e/dev/dev.spec.ts#L5
1) [Desktop Chrome] › dev.spec.ts:3:5 › should contain craftjs renderer ──────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(received).toHaveCount(expected) // deep equality
Expected: 1
Received: 0
Call log:
- expect.toHaveCount with timeout 5000ms
- waiting for locator('div.craftjs-renderer')
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
3 | test('should contain craftjs renderer', async ({ page }) => {
4 | await page.goto('/')
> 5 | await expect(page.locator('div.craftjs-renderer')).toHaveCount(1)
| ^
6 | })
7 |
8 | test('should drap and drop a component', async ({ page }) => {
at /home/runner/work/destack/destack/e2e/dev/dev.spec.ts:5:54
|
[Desktop Chrome] › dev.spec.ts:8:5 › should drap and drop a component:
e2e/dev/dev.spec.ts#L1
2) [Desktop Chrome] › dev.spec.ts:8:5 › should drap and drop a component ─────────────────────────
Test timeout of 15000ms exceeded.
|
[Desktop Chrome] › dev.spec.ts:8:5 › should drap and drop a component:
e2e/dev/dev.spec.ts#L13
2) [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\']')
============================================================
11 | // add component
12 | const imagePath = '/api/builder/handle?type=asset&path=/themes/hyperui/Banner1/preview.png'
> 13 | await page.dragAndDrop(`img[src='${imagePath}']`, 'div.craftjs-renderer > div > div')
| ^
14 | await expect(page.locator('div.craftjs-renderer > div > div')).toHaveCount(1)
15 |
16 | // remove the component
at /home/runner/work/destack/destack/e2e/dev/dev.spec.ts:13:14
|
[Desktop Chrome] › dev.spec.ts:8:5 › should drap and drop a component:
e2e/dev/dev.spec.ts#L1
2) [Desktop Chrome] › dev.spec.ts:8:5 › should drap and drop a component ─────────────────────────
Pending operations:
- page.dragAndDrop at e2e/dev/dev.spec.ts:13:14
|
[Desktop Chrome] › dev.spec.ts:8:5 › should drap and drop a component:
e2e/dev/dev.spec.ts#L1
2) [Desktop Chrome] › dev.spec.ts:8:5 › should drap and drop a component ─────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 15000ms exceeded.
|
[Desktop Chrome] › dev.spec.ts:8:5 › should drap and drop a component:
e2e/dev/dev.spec.ts#L13
2) [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\']')
============================================================
11 | // add component
12 | const imagePath = '/api/builder/handle?type=asset&path=/themes/hyperui/Banner1/preview.png'
> 13 | await page.dragAndDrop(`img[src='${imagePath}']`, 'div.craftjs-renderer > div > div')
| ^
14 | await expect(page.locator('div.craftjs-renderer > div > div')).toHaveCount(1)
15 |
16 | // remove the component
at /home/runner/work/destack/destack/e2e/dev/dev.spec.ts:13:14
|
[Desktop Chrome] › dev.spec.ts:8:5 › should drap and drop a component:
e2e/dev/dev.spec.ts#L1
2) [Desktop Chrome] › dev.spec.ts:8:5 › should drap and drop a component ─────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Pending operations:
- page.dragAndDrop at e2e/dev/dev.spec.ts:13:14
|
[Desktop Chrome] › dev.spec.ts:21:5 › should add an image to renderer:
e2e/dev/dev.spec.ts#L1
3) [Desktop Chrome] › dev.spec.ts:21:5 › should add an image to renderer ─────────────────────────
Test timeout of 15000ms exceeded.
|
[Desktop Chrome] › dev.spec.ts:21:5 › should add an image to renderer:
e2e/dev/dev.spec.ts#L25
3) [Desktop Chrome] › dev.spec.ts:21:5 › should add an image to renderer ─────────────────────────
Error: page.click: Target closed
=========================== logs ===========================
waiting for locator('div.toolbox > div > div:nth-child(1)')
============================================================
23 |
24 | // add component with image
> 25 | await page.click('div.toolbox > div > div:nth-child(1)')
| ^
26 | await page.click('div.toolbox > div > div:nth-child(2)')
27 | const imagePath = '/api/builder/handle?type=asset&path=/themes/hyperui/Cta1/preview.png'
28 | await page.dragAndDrop(`img[src='${imagePath}']`, 'div.craftjs-renderer > div > div')
at /home/runner/work/destack/destack/e2e/dev/dev.spec.ts:25:14
|
Slow Test:
[Desktop Firefox] › dev.spec.ts#L1
[Desktop Firefox] › dev.spec.ts took 1.3m
|
Slow Test:
[Desktop Chrome] › dev.spec.ts#L1
[Desktop Chrome] › dev.spec.ts took 1.2m
|
🎭 Playwright Run Summary
6 failed
[Desktop Chrome] › dev.spec.ts:3:5 › should contain craftjs renderer ───────────────────────────
[Desktop Chrome] › dev.spec.ts:8:5 › should drap and drop a component ──────────────────────────
[Desktop Chrome] › dev.spec.ts:21:5 › should add an image to renderer ──────────────────────────
[Desktop Firefox] › dev.spec.ts:3:5 › should contain craftjs renderer ──────────────────────────
[Desktop Firefox] › dev.spec.ts:8:5 › should drap and drop a component ─────────────────────────
[Desktop Firefox] › dev.spec.ts:21:5 › should add an image to renderer ─────────────────────────
|