Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/compressed-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v2 # Checkout the Stackable Premium repo.
with:
repository: 'bfintal/Stackable-Premium'
ref: 'v3'
ref: 'develop'
path: 'pro__premium_only'
token: '${{ secrets.ACCESS_KEY }}'
- name: Install Composer Dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- php_version: '7.3'
wp_version: 6.5.5

- php_version: '7.3'
- php_version: '7.4'
wp_version: null

- php_version: '8.2'
Expand Down
18 changes: 14 additions & 4 deletions e2e/tests/block-editor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,22 @@ test.describe( 'Block Editor', () => {
} ) => {
await editor.insertBlock( {
name: 'stackable/text',
attributes: {
text: 'test',
textColor1: '#ff0000',
},
} )

const settings = page.getByLabel( 'Settings', { exact: true } )

if ( await settings.getAttribute( 'aria-pressed' ) === 'false' ) {
await settings.click()
}

// Add content and color to Stackable Text Block
await editor.canvas.locator( '[data-type="stackable/text"] > .stk-block-text > p[role="textbox"]' ).fill( 'test' )
await page.locator( '.stk-color-palette-control .stk-control-content > .components-dropdown > .components-button' ).first().click()
await page.getByLabel( 'Hex color' ).fill( 'ff0000' )

// Click on the body to close the Color Picker popup
await editor.canvas.locator( 'body' ).click()

const clientId = await editor.canvas.getByLabel( 'Block: Text' ).getAttribute( 'data-block' )
const uniqueId = ( await editor.getBlockAttributes( clientId ) ).uniqueId

Expand Down
Loading