E2e testing with Playwright #17
Annotations
10 errors and 1 notice
[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: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
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
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: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
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
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: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
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
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: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
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
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: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.
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
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: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.
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
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
|
🎭 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
1 flaky
[tests] › tests/global-settings.spec.ts:88:6 › Global Settigs › When a default block is created, adding the block should have the default block's attributes
8 passed (2.6m)
|