Skip to content

Commit

Permalink
update to default block page
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkae committed Feb 12, 2025
1 parent 9c910a6 commit 1c3c301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/tests/global-settings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ test.describe( 'Global Settings', () => {
await defaultBlockPage.getByLabel( 'Hex color' ).fill( 'ff0000' )
await defaultBlockPage.locator( '.stk-color-palette-control .stk-control-content > .components-dropdown > .components-button' ).first().click()

const updateRequest = page.waitForResponse( response => response.url().includes( 'update_block_style' ) && response.request().method() === 'POST' )
const updateRequest = defaultBlockPage.waitForResponse( response => response.url().includes( 'update_block_style' ) && response.request().method() === 'POST' )

// In older WP versions, the button text is 'Update' instead of 'Save'
if ( await defaultBlockPage.getByRole( 'button', { name: 'Save', exact: true } ).isVisible() ) {
Expand Down

0 comments on commit 1c3c301

Please sign in to comment.