-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Remove most uses of isNavigationMode in contentOnly logic
#72043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
33789c3
f948b73
f9a7454
c68e4f5
d8c39ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ | |
| */ | ||
| const { test, expect } = require( '@wordpress/e2e-test-utils-playwright' ); | ||
|
|
||
| test.describe( 'Write/Design mode', () => { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've disabled these for now instead of removing them because I think we can rewrite them to apply to contentOnly patterns instead. It might be better to wait until the feature is a bit more stable to do that though! |
||
| test.describe.skip( 'Write/Design mode', () => { | ||
| test.beforeAll( async ( { requestUtils } ) => { | ||
| await requestUtils.activateTheme( 'emptytheme' ); | ||
| } ); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -263,8 +263,8 @@ test.describe( 'Zoom Out', () => { | |
| .getByRole( 'menu', { name: 'Options' } ) | ||
| .getByRole( 'menuitem' ); | ||
|
|
||
| // we expect 4 items in the options menu | ||
| await expect( optionsMenu ).toHaveCount( 4 ); | ||
| // we expect 2 items in the options menu: Duplicate and Delete. | ||
| await expect( optionsMenu ).toHaveCount( 2 ); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is an expected change because patterns in contentOnly mode no longer have "cut" and "copy" options. |
||
| } ); | ||
|
|
||
| test( 'Zoom Out cannot be activated when the section root is missing', async ( { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might already be imagining a different PR for it, but if this classname is removed, we can probably remove the CSS here, too?
gutenberg/packages/block-editor/src/components/block-tools/style.scss
Line 143 in 8b837f7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that makes sense!