Skip to content

Conversation

@cbravobernal
Copy link
Contributor

What

Adds an e2e experiment that creates a SCF block, edits its field and renders on the frontend.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds an end-to-end experiment for a SCF block that creates a block plugin, sets up its field, and verifies its rendering on the frontend.

  • Adds a test plugin that registers a custom block.
  • Implements a block template and corresponding block configuration in block.json.
  • Introduces an e2e test to validate the movie title field functionality in the block.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
tests/e2e/plugins/scf-test-get-field-scf-block.php Registers the custom SCF block for testing.
tests/e2e/plugins/blocks/scf-movie-title-block/template.php Provides the template for rendering the movie title block.
tests/e2e/plugins/blocks/scf-movie-title-block/block.json Defines block metadata and settings.
tests/e2e/field-type-text-with-scf-block.spec.ts Implements the e2e test that creates and validates the field group and block behavior.

@cbravobernal cbravobernal merged commit 2f899c6 into trunk May 15, 2025
5 checks passed
@cbravobernal cbravobernal deleted the add/block-e2e-experiment branch May 15, 2025 10:51
@cbravobernal cbravobernal added this to the 6.5.0 milestone Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants