Skip to content

Commit a9efb38

Browse files
committed
Hide behavior UI, as Lightbox is not production ready
1 parent b744cf0 commit a9efb38

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

lib/experimental/editor-settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function gutenberg_enable_experiments() {
9696
wp_add_inline_script( 'wp-block-editor', 'window.__experimentalEnablePatternEnhancements = true', 'before' );
9797
}
9898
if ( $gutenberg_experiments && array_key_exists( 'gutenberg-interactivity-api-core-blocks', $gutenberg_experiments ) ) {
99-
wp_add_inline_script( 'wp-block-editor', 'window.__experimentalInteractivityAPI = true', 'before' );
99+
wp_add_inline_script( 'wp-block-editor', 'window.__experimentalInteractivityAPI = false', 'before' );
100100
}
101101

102102
}

test/e2e/specs/editor/various/behaviors.spec.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ test.describe( 'Testing behaviors functionality', () => {
5050
await page.waitForLoadState();
5151
} );
5252

53-
test( '`No Behaviors` should be the default as defined in the core theme.json', async ( {
53+
// Skipped because the release won't have the behaviors UI.
54+
// So we cannot test that the behaviors inferface is present or its values.
55+
test.skip( '`No Behaviors` should be the default as defined in the core theme.json', async ( {
5456
admin,
5557
editor,
5658
requestUtils,
@@ -79,7 +81,9 @@ test.describe( 'Testing behaviors functionality', () => {
7981
await expect( options ).toHaveCount( 2 );
8082
} );
8183

82-
test( 'Behaviors UI can be disabled in the `theme.json`', async ( {
84+
// Skipped because the release won't have the behaviors UI.
85+
// So we cannot test that the behaviors inferface is present or its values.
86+
test.skip( 'Behaviors UI can be disabled in the `theme.json`', async ( {
8387
admin,
8488
editor,
8589
requestUtils,
@@ -106,7 +110,9 @@ test.describe( 'Testing behaviors functionality', () => {
106110
await expect( page.getByLabel( 'Behavior' ) ).toHaveCount( 0 );
107111
} );
108112

109-
test( "Block's value for behaviors takes precedence over the theme's value", async ( {
113+
// Skipped because the release won't have the behaviors UI.
114+
// So we cannot test that the behaviors inferface is present or its values.
115+
test.skip( "Block's value for behaviors takes precedence over the theme's value", async ( {
110116
admin,
111117
editor,
112118
requestUtils,
@@ -146,7 +152,9 @@ test.describe( 'Testing behaviors functionality', () => {
146152
// lightbox even though the theme.json has it set to false.
147153
} );
148154

149-
test( 'You can set the default value for the behaviors in the theme.json', async ( {
155+
// Skipped because the release won't have the behaviors UI.
156+
// So we cannot test that the behaviors inferface is present or its values.
157+
test.skip( 'You can set the default value for the behaviors in the theme.json', async ( {
150158
admin,
151159
editor,
152160
requestUtils,

0 commit comments

Comments
 (0)