getContentFromTitle does not return the expected result when sticky posts are published #218
A seemingly random, incorrect post is returned
Steps to reproduce
I am attempting to write custom tests for the Give donation form to provide a real-world WordHat example
I am using the wpcli driver but have tried the php driver locally as well.
I also created a custom step that passes
In CircleCI the wpcli driver is being run against a remote URL on Pantheon, not a local URL. When testing locally the wpcli driver is used but against a local WordPress installation.
The text was updated successfully, but these errors were encountered:
I tracked this down to sticky posts. I am using the wp-cli driver and even when running wp-cli commands directly outside of Behat sticky a post shows up when I expect a different post as the result when using
I think this is a result of wp-cli running
I'm not familiar enough with the drivers to know:
This prevents the underlying `WP_Query` in WP-PHP driver and WP-CLI itself returning sticky posts when retriving a post ID by post title, as seen with the "I am on the edit screen for" step definition. This does not affect intentionally retrieving sticky posts in this way. Fixes #218