Skip to content

Testing: Add E2E test for inserting reusable blocks by inserter after page refresh #9962

@aduth

Description

@aduth

To avoid repeated regressions, we should include an end-to-end test for inserting a reusable block by Inserter in a fresh editor page. See #9962 (comment) .

Original Regression:


Describe the bug

Reusable blocks are not shown in the Inserter.

To Reproduce

  1. (Prerequisite) Create a reusable block in a Gutenberg editor session
  2. Create a new post
  3. Try to insert the reusable block (either one preexisting, or the one created in Step 1) using the Inserter.
  4. Observe that the reusable block is not shown in the inserter.

Expected behavior

Reusable block is both shown and searchable.

Additional context

Slack mentions:

From @youknowriad:

I think we do have an e2e test, what's missing is an e2e test inserting a reusable block after refreshing the page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueAn issue that's suitable for someone looking to contribute for the first timeNeeds DevReady for, and needs developer efforts[Feature] InserterThe main way to insert blocks using the + button in the editing interface[Feature] Synced PatternsRelated to synced patterns (formerly reusable blocks)[Status] In ProgressTracking issues with work in progress[Type] Automated TestingTesting infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions