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
- Configure wp-env to use
"core":"WordPress/WordPress#master"
- Create a test to create a page
- Run the create post tests
- Hope it takes a little while
- 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
Describe the bug
Currently the
createPostfunction 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
"core":"WordPress/WordPress#master"If the test continues to pass, then change this line to wait for 50ms
cypress-wp-utils/src/commands/create-post.ts
Line 73 in 55454f6
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
No response
Code of Conduct