Skip to content

Improve dismissal of createPost pattern overlay on pages. #147

Description

@peterwilsoncc

Describe the bug

Currently the createPost function attempts to dismiss pattern overlay on pages after waiting for 1500ms.

This is a little flaky as the overlay can sometimes take longer to appear so the function will proceed before the pattern exists.

I'm seeing this happen most commonly on trunk so I suspect something has changed in WordPress that is slowing down the appearance of the overlay recently.

Steps to Reproduce

  1. Configure wp-env to use "core":"WordPress/WordPress#master"
  2. Create a test to create a page
  3. Run the create post tests
  4. Hope it takes a little while
  5. Re-run if not.

If the test continues to pass, then change this line to wait for 50ms

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions