Skip to content

Commit

Permalink
E2E Tests: Fix failing image e2e and php unit tests (#36982)
Browse files Browse the repository at this point in the history
* Fix failing image e2e test by waiting for required element before attempting click
* Switch to waiting for image instead of the image resize buttons in image block e2e tests
* Add delay when clearing input field and typing replacement url in image e2e tests
* Add in wait for user input box to prevent username being partially entered in mentions e2e test
* Add phpunit-polyfills to fix running of php-unit tests locally - related to https://make.wordpress.org/core/2021/09/27/changes-to-the-wordpress-core-php-test-suite/

Co-authored-by: Glen Davies <glen.davies@a8c.com>
Co-authored-by: Andrew Serong <14988353+andrewserong@users.noreply.github.com>
Co-authored-by: Daniel Richards <daniel.richards@automattic.com>
  • Loading branch information
4 people committed Nov 30, 2021
1 parent 604561d commit a295829
Show file tree
Hide file tree
Showing 4 changed files with 426 additions and 276 deletions.
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -26,7 +26,8 @@
"sirbrillig/phpcs-variable-analysis": "^2.8",
"wp-phpunit/wp-phpunit": "^5.4",
"phpunit/phpunit": "^8.5",
"spatie/phpunit-watcher": "^1.23"
"spatie/phpunit-watcher": "^1.23",
"yoast/phpunit-polyfills": "^1.0"
},
"require": {
"composer/installers": "~1.0"
Expand Down

0 comments on commit a295829

Please sign in to comment.