Skip to content

Skip the Yoast e2e tests on WP 7.2's admin 404 - #793

Merged
ilicfilip merged 1 commit into
developfrom
filip/fix-yoast-e2e-skip
Oct 21, 2026
Merged

ilicfilip merged 1 commit into
developfrom
filip/fix-yoast-e2e-skip

Conversation

@ilicfilip

Copy link
Copy Markdown
Collaborator

Why

The e2e-tests (Playground) job currently fails on every PR. The two tests in yoast-integration.spec.ts time out after 15 seconds waiting for a Yoast toggle (first seen on #792).

The Playground blueprint doesn't install Yoast. These tests are supposed to skip when the Yoast settings page is missing, and they detected that by looking for "Sorry, you are not allowed". WordPress core changed that on 2026-10-15 (wordpress-develop 6dc9323d3, "Display 404 error for unregistered admin pages", coming in 7.2): an unknown admin page now shows "The requested page does not exist." with a 404 status. Playground picks that up, so the skip check stopped matching. The CI failure screenshot shows exactly that 404 page.

What

The skip check now accepts either message. The Yoast tests that actually exercise Yoast run in the Docker yoast-premium-tests job, and nothing changes for them.

Testing

  • Formatted with wp-scripts format
  • I didn't run it locally, because that needs a new Playwright browser download. The e2e-tests CI job on this PR is the check.

🤖 Generated with Claude Code

The Playground blueprint does not install Yoast, so these two tests
rely on skipping when the Yoast settings page is missing. They detected
that by the "Sorry, you are not allowed" message, but WordPress 7.2
(wordpress-develop 6dc9323d3) now answers an unregistered admin page
with "The requested page does not exist." and a 404. The skip no longer
matched, so both tests waited for a toggle that never renders and timed
out. Accept either message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Test merged PR on Playground
Test this pull request on the Playground
or download the zip

@github-actions

Copy link
Copy Markdown
Contributor

✅ Code Coverage Report

Metric Value
Total Coverage 34.27% 📉
Base Coverage 34.27%
Difference 📈 0.00%

⚠️ Coverage below recommended 40% threshold

🎉 Great job maintaining/improving code coverage!

ℹ️ About this report
  • All tests run in a single job with Xdebug coverage
  • Security tests excluded from coverage to prevent output issues
  • Coverage calculated from line coverage percentages

@github-actions

Copy link
Copy Markdown
Contributor

🔍 WordPress Plugin Check Report

⚠️ Status: Passed with warnings

📊 Report

🎯 Total Issues ❌ Errors ⚠️ Warnings
10 0 10

⚠️ Warnings (10)

📁 classes/suggested-tasks/data-collector/class-unpublished-content.php (1 warning)
📍 Line 🔖 Check 💬 Message
103 WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_post__not_in Using exclusionary parameters, like post__not_in, in calls to get_posts() should be done with caution, see https://docs.wpvip.com/databases/optimize-queries/using-post__not_in/ for more information.
📁 classes/suggested-tasks/providers/class-content-review.php (4 warnings)
📍 Line 🔖 Check 💬 Message
232 WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_post__not_in Using exclusionary parameters, like post__not_in, in calls to get_posts() should be done with caution, see https://docs.wpvip.com/databases/optimize-queries/using-post__not_in/ for more information.
377 WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_post__not_in Using exclusionary parameters, like post__not_in, in calls to get_posts() should be done with caution, see https://docs.wpvip.com/databases/optimize-queries/using-post__not_in/ for more information.
381 WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_post__not_in Using exclusionary parameters, like post__not_in, in calls to get_posts() should be done with caution, see https://docs.wpvip.com/databases/optimize-queries/using-post__not_in/ for more information.
388 WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_post__not_in Using exclusionary parameters, like post__not_in, in calls to get_posts() should be done with caution, see https://docs.wpvip.com/databases/optimize-queries/using-post__not_in/ for more information.
📁 classes/activities/class-query.php (2 warnings)
📍 Line 🔖 Check 💬 Message
71 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $table_name used in $wpdb->query()\n$table_name assigned unsafely at line 58.
163 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $where_args used in $wpdb->get_results()\n$where_args assigned unsafely at line 153.
📁 classes/suggested-tasks/data-collector/class-yoast-orphaned-content.php (1 warning)
📍 Line 🔖 Check 💬 Message
111 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $query used in $wpdb->get_row()\n$query assigned unsafely at line 98.
📁 classes/suggested-tasks/data-collector/class-terms-without-description.php (1 warning)
📍 Line 🔖 Check 💬 Message
108 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $query used in $wpdb->get_results()\n$query assigned unsafely at line 106.
📁 classes/suggested-tasks/data-collector/class-terms-without-posts.php (1 warning)
📍 Line 🔖 Check 💬 Message
120 PluginCheck.Security.DirectDB.UnescapedDBParameter Unescaped parameter $query used in $wpdb->get_results()\n$query assigned unsafely at line 118.

🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

@ilicfilip
ilicfilip marked this pull request as ready for review October 21, 2026 08:33
@ilicfilip
ilicfilip merged commit f56a410 into develop Oct 21, 2026
21 checks passed
@ilicfilip
ilicfilip deleted the filip/fix-yoast-e2e-skip branch October 21, 2026 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant