Skip to content

Conversation

@n7studios
Copy link
Contributor

@n7studios n7studios commented Nov 17, 2025

Summary

Improves reliability of end to end tests, by:

  • running integration tests separately, across all PHP versions
  • use chromedriver in headless mode with --disable-software-rasterizer
  • avoid stale element checks in waitForElementVisible by checking for a unique element on page load vs. an existing element that always exists
  • when interacting with iframes, switch back to the main window
  • more accurate checks for element attribute values (such as the review request's href attribute)
  • for Uncode theme,
  • avoid the same email address being used across multiple tests by using microtime() when generating a unique email address
  • improve failures on WordPress login by ensuring username and password fields are filled
  • fix bulk edit tests in WooCommerce

Testing

Existing tests pass.

Checklist

@n7studios n7studios self-assigned this Nov 17, 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 November 18, 2025 07:38
@n7studios n7studios marked this pull request as ready for review November 18, 2025 07:38
@Kit Kit deleted a comment from github-actions bot Nov 18, 2025
{
return 'wordpress-' . date( 'Y-m-d-H-i-s' ) . '-php-' . PHP_VERSION_ID . '@' . $domain;
$date = \DateTime::createFromFormat('U.u', number_format(microtime(true), 6, '.', ''));
return 'wordpress-' . $date->format('Y-m-d-H-i-s-u') . '-php-' . PHP_VERSION_ID . '@' . $domain;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we keep getting collisions, we might want to think about APIs specifically designed for randomness, something like base64_encode(random_bytes($length))

…at-6-9

Member Content: Courses: Improve SQL query for 6.9 compat.
@n7studios n7studios merged commit 48c7470 into main Nov 19, 2025
@n7studios n7studios deleted the tests-improve-reliability branch December 5, 2025 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants