-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
[Product Block Editor]: relocate block actions in the sections area #43555
[Product Block Editor]: relocate block actions in the sections area #43555
Conversation
Test Results SummaryCommit SHA: d217c4e
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
cfbc1ed
to
fa5110e
Compare
Hi @nathanss, @woocommerce/mothra Apart from reviewing the code changes, please make sure to review the testing instructions as well. You can follow this guide to find out what good testing instructions should look like: |
53a94b3
to
2d8a14f
Compare
describe( 'empty state', () => { | ||
it( 'should show subtitle and "Add new" button', () => { | ||
const { queryByText } = render( | ||
<AttributeControl value={ [] } onChange={ () => {} } /> | ||
); | ||
expect( queryByText( 'Add new' ) ).toBeInTheDocument(); | ||
} ); | ||
} ); | ||
|
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.
I've removed this test since the button is now transported via a portal to another DOM location. We can try to add a test straight in the SlotFill implementation
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.
The code is looking good and the changes are all testing as expected! Nice job :)
2d8a14f
to
d217c4e
Compare
…43555) * handle section actions styles from section block * rename DownloadBlockEdit * remove unneeded wrap el from linked product list * put Choose an Image button in the actions section * move attribute control to block actions section * changelog * remove unused clientId prop * tweak Image button * remove `should show subtitle and "Add new" button` test
Submission Review Guidelines:
Changes proposed in this Pull Request:
This PR is a follow-up of #43540, which updates section actions for the following blocks:
Closes # .
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
Changelog entry
Significance
Type
Message
Comment