Skip to content

Conversation

@n7studios
Copy link
Contributor

@n7studios n7studios commented Oct 29, 2025

Summary

Previously passing tests began failing, due to Intercom no longer showing the widget if the user-agent contains HeadlessChrome

Screenshot 2025-10-29 at 15 59 00

This PR resolves by checking if the script is in the source, rather than attempting to interact with it in the DOM.

Testing

Existing tests pass.

Checklist

@n7studios n7studios self-assigned this Oct 29, 2025
@github-actions
Copy link

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@n7studios n7studios requested review from a team, corydhmiller and noelherrick and removed request for a team October 29, 2025 12:57
@n7studios n7studios marked this pull request as ready for review October 29, 2025 12:57
Tests: Run Static Analysis on PHP 8.0+
@github-actions
Copy link

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@n7studios n7studios merged commit 2aa53be into main Oct 29, 2025
317 of 353 checks passed
@n7studios
Copy link
Contributor Author

@noelherrick FYI, merged last week. If there are any changes/suggestions, let me know and I can submit a new PR.

@n7studios n7studios deleted the tests-fix-intercom-detection branch November 11, 2025 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants