Codeinwp / otter-blocks

Create beautiful and attracting posts, pages, and landing pages with Gutenberg Blocks and Template Library by Otter.
https://wordpress.org/plugins/otter-blocks/
GNU General Public License v3.0
135 stars 35 forks source link

fix: improve block sanitization #2164

Closed preda-bogdan closed 5 months ago

preda-bogdan commented 5 months ago

Closes Codeinwp/otter-internals#163.

Summary

Improved Posts Grid Block sanitization. Added PHPUnit test

Removed .phpunit.results.cache from the repository, there is no reason to track this. Improved the bootstrap.php to autoload the plugin classes. Added build step to PHP Test CI job.

Screenshots


Test instructions

  1. Follow the steps from the linked issue to validate this.
  2. All automatic tests should pass.

Checklist before the final review

pirate-bot commented 5 months ago

Bundle Size Diff

Package Old Size New Size Diff
Animations 237.69 KB 237.69 KB 0 B (0.00%)
Blocks 1.5 MB 1.5 MB 0 B (0.00%)
CSS 91.76 KB 91.76 KB 0 B (0.00%)
Dashboard 200.11 KB 200.11 KB 0 B (0.00%)
Onboarding 152.76 KB 152.76 KB 0 B (0.00%)
Export Import 89.53 KB 89.53 KB 0 B (0.00%)
Pro 354.49 KB 354.49 KB 0 B (0.00%)
pirate-bot commented 5 months ago

Plugin build for 7d461248f08b68369975de16a1f62cc53e7173f5 is ready :bellhop_bell:!

pirate-bot commented 5 months ago

E2E Tests

Playwright Test Status:

Performance Results serverResponse: 213, firstPaint: 553.2, domContentLoaded: 1529.6, loaded: 1530.1, firstContentfulPaint: 3505.3, firstBlock: 5397.2, type: 11.71, minType: 9.96, maxType: 15.83, typeContainer: 7.79, minTypeContainer: 7.17, maxTypeContainer: 9.77, focus: 40.36, minFocus: 36.85, maxFocus: 49.9, inserterOpen: 26.27, minInserterOpen: 24.21, maxInserterOpen: 28.79, inserterSearch: 6.35, minInserterSearch: 5.94, maxInserterSearch: 6.85, inserterHover: 3.31, minInserterHover: 2.76, maxInserterHover: 4.63, listViewOpen: 150.57, minListViewOpen: 132.67, maxListViewOpen: 188.71
pirate-bot commented 5 months ago

:tada: This PR is included in version 2.6.9 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: