Skip to content
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

tests: Add tests for CoreCode Block #27

Merged
merged 5 commits into from
Sep 26, 2024
Merged

tests: Add tests for CoreCode Block #27

merged 5 commits into from
Sep 26, 2024

Conversation

ashutoshgautams
Copy link
Collaborator

@ashutoshgautams ashutoshgautams commented Sep 24, 2024

Tracking wpengine#303


What

This PR adds comprehensive tests for the CoreCode block and its attributes.

Tested attributes:

  • align
  • anchor
  • backgroundColor
  • borderColor
  • className
  • content
  • cssClassName
  • fontFamily
  • fontSize
  • gradient
  • lock
  • style
  • textColor

Untested fields:

  • CoreCodeAttributes.metadata - @todo

Exposed issues:

  • None identified during testing. All attributes appear to be correctly implemented and returned as expected.

Copy link
Collaborator

@justlevine justlevine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the Additional notes since it didnt add value. Once the b/c tests are fixed, this should be good to go 🚀

- Align attribute is only supported in WP 6.3+
- Create separate test for align attribute
@ashutoshgautams ashutoshgautams marked this pull request as ready for review September 24, 2024 20:01
Copy link
Collaborator

@justlevine justlevine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go ahead and open this on WPE 🚀

@justlevine justlevine added the has-upstream-pr A PR has been opened against wpengine's repo label Sep 25, 2024
@justlevine justlevine merged commit 09e71da into main Sep 26, 2024
10 checks passed
@justlevine justlevine deleted the core-code-test branch October 18, 2024 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has-upstream-pr A PR has been opened against wpengine's repo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants