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 <[email protected]>
Co-authored-by: Andrew Serong <[email protected]>
Co-authored-by: Daniel Richards <[email protected]>
  • Loading branch information
4 people authored and noisysocks committed Dec 6, 2021
1 parent 6b97fb7 commit 4b22647
Show file tree
Hide file tree
Showing 4 changed files with 426 additions and 276 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
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
Loading

0 comments on commit 4b22647

Please sign in to comment.