Skip to content

E2e testing with Playwright #20

E2e testing with Playwright

E2e testing with Playwright #20

Triggered via pull request February 6, 2025 14:56
Status Failure
Total duration 5m 8s
Artifacts 1

playwright.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 1 notice
test
Process completed with exit code 127.
[tests] › tests/site-editor.spec.ts:32:6 › Site Editor › Stackable blocks can be added in the site editor: e2e/tests/site-editor.spec.ts#L39
1) [tests] › tests/site-editor.spec.ts:32:6 › Site Editor › Stackable blocks can be added in the site editor TypeError: Cannot read properties of undefined (reading 'clientId') 37 | await page.locator( '.editor-block-list-item-stackable-text' ).click() 38 | > 39 | const blocks = await editor.getBlocks( { clientId: postContentBlock.clientId } ) | ^ 40 | 41 | expect( blocks.find( block => block.name === 'stackable/text' ) ).toBeTruthy() 42 | } ) at /home/runner/work/Stackable/Stackable/e2e/tests/site-editor.spec.ts:39:71
[tests] › tests/site-editor.spec.ts:44:6 › Site Editor › Stackable Inspector Controls should show up upon clicking a Stackable block: e2e/tests/site-editor.spec.ts#L50
2) [tests] › tests/site-editor.spec.ts:44:6 › Site Editor › Stackable Inspector Controls should show up upon clicking a Stackable block TypeError: Cannot read properties of undefined (reading 'clientId') 48 | await editor.insertBlock( { 49 | name: 'stackable/text', > 50 | }, { clientId: postContentBlock.clientId } ) | ^ 51 | 52 | await editor.selectBlocks( editor.canvas.getByLabel( 'Block: Text' ) ) 53 | await expect( page.getByLabel( 'Layout Tab' ) ).toBeVisible() at /home/runner/work/Stackable/Stackable/e2e/tests/site-editor.spec.ts:50:35
[tests] › tests/site-editor.spec.ts:58:6 › Site Editor › A Stackable block's attributes should update when settings are changed in the Inspector Controls.: e2e/tests/site-editor.spec.ts#L64
3) [tests] › tests/site-editor.spec.ts:58:6 › Site Editor › A Stackable block's attributes should update when settings are changed in the Inspector Controls. TypeError: Cannot read properties of undefined (reading 'clientId') 62 | await editor.insertBlock( { 63 | name: 'stackable/text', > 64 | }, { clientId: postContentBlock.clientId } ) | ^ 65 | await editor.canvas.getByLabel( 'Type / to choose a block' ).fill( 'test' ) 66 | await expect( page.locator( '#inspector-textarea-control-0' ) ).toContainText( 'test' ) 67 | await page.locator( '.stk-color-palette-control .stk-control-content > .components-dropdown > .components-button' ).first().click() at /home/runner/work/Stackable/Stackable/e2e/tests/site-editor.spec.ts:64:35
[tests] › tests/site-editor.spec.ts:82:6 › Site Editor › The Stackable block added in the site editor should be visible in the frontend: e2e/tests/site-editor.spec.ts#L91
4) [tests] › tests/site-editor.spec.ts:82:6 › Site Editor › The Stackable block added in the site editor should be visible in the frontend TypeError: Cannot read properties of undefined (reading 'clientId') 89 | textColor1: '#ff0000', 90 | }, > 91 | }, { clientId: postContentBlock.clientId } ) | ^ 92 | 93 | const blocks = await editor.getBlocks( { clientId: postContentBlock.clientId } ) 94 | const uniqueId = blocks.find( block => block.name === 'stackable/text' ).attributes.uniqueId at /home/runner/work/Stackable/Stackable/e2e/tests/site-editor.spec.ts:91:35
test
Process completed with exit code 1.
🎭 Playwright Run Summary
4 failed [tests] › tests/site-editor.spec.ts:32:6 › Site Editor › Stackable blocks can be added in the site editor [tests] › tests/site-editor.spec.ts:44:6 › Site Editor › Stackable Inspector Controls should show up upon clicking a Stackable block [tests] › tests/site-editor.spec.ts:58:6 › Site Editor › A Stackable block's attributes should update when settings are changed in the Inspector Controls. [tests] › tests/site-editor.spec.ts:82:6 › Site Editor › The Stackable block added in the site editor should be visible in the frontend 9 passed (1.3m)

Artifacts

Produced during runtime
Name Size
playwright-report-3389-merge
15.9 MB