Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

behat test failures on wordpress + composer sites #373

Open
sugaroverflow opened this issue Mar 3, 2021 · 5 comments
Open

behat test failures on wordpress + composer sites #373

sugaroverflow opened this issue Mar 3, 2021 · 5 comments
Assignees

Comments

@sugaroverflow
Copy link
Contributor

sugaroverflow commented Mar 3, 2021

@jrastaban and I ran into this issue today where a behat test was failing because of a new authentication window in WordPress asking to confirm an email address. Opening this issue to look into this further and possibly provide documentation to help users who might run into this.

@sugaroverflow
Copy link
Contributor Author

from @jrastaban

Looking at the error URLs. it now makes sense
https://dev-****************.pantheonsite.io/wp/wp-login.php?redirect_to=https%3A%2F%2Fdev-****************.pantheonsite.io%2F&action=confirm_admin_email&wp_lang=en_US

@sugaroverflow
Copy link
Contributor Author

the WP ticket: https://core.trac.wordpress.org/ticket/46349

@jrastaban
Copy link

@sugaroverflow, Thanks again for helping me debug this 🙌

Using the advice linked above I put together a small plugin to inject the code to disable the notifications. Once I added and activated this, the behat builds started working again.

A preferred solution would be one that works with notifications still enabled so I'll do some more digging.

@stevector
Copy link
Collaborator

This issue could probably be worked around with a minor tweak to the .feature file that specifies the failing test. If necessary, it'd be easy enough to add a custom step or override.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants