Skip to content

Commit

Permalink
E2E: Ensure window.wp.data is available before running the settings u…
Browse files Browse the repository at this point in the history
…pdate
  • Loading branch information
himanshupathak95 committed Feb 5, 2025
1 parent acb4d04 commit b016238
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/e2e/specs/editor/blocks/spacer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ test.describe( 'Spacer', () => {
editor,
page,
} ) => {
await page.waitForFunction( () => window?.wp?.data );

// Mock the theme.json data to simulate a theme without spacing units
await page.evaluate( () => {
const settings = window.wp.data
Expand Down

0 comments on commit b016238

Please sign in to comment.