From 87a2d67b804625167e5a27786d106b4cc0e34d21 Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Tue, 26 Nov 2024 09:36:20 +0800 Subject: [PATCH] Enable write mode experiment for e2e pattern overrides block editing mode tests --- test/e2e/specs/editor/various/pattern-overrides.spec.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/e2e/specs/editor/various/pattern-overrides.spec.js b/test/e2e/specs/editor/various/pattern-overrides.spec.js index a67d5a75a31ff1..20eff4096cb1cc 100644 --- a/test/e2e/specs/editor/various/pattern-overrides.spec.js +++ b/test/e2e/specs/editor/various/pattern-overrides.spec.js @@ -227,6 +227,12 @@ test.describe( 'Pattern Overrides', () => { } ); test.describe( 'block editing modes', () => { + test.beforeEach( async ( { page } ) => { + await page.addInitScript( () => { + window.__experimentalEditorWriteMode = true; + } ); + } ); + test( 'blocks with bindings in a synced pattern are editable, and all other blocks are disabled', async ( { admin, editor,