Skip to content

Commit

Permalink
Revert "fix plugin activation sometimes not working"
Browse files Browse the repository at this point in the history
This reverts commit 4fa6171.
  • Loading branch information
hansmorb committed Sep 11, 2023
1 parent 4fa6171 commit 5d98e90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .wp-env.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"phpVersion": "7.4",
"core": "Wordpress/Wordpress#6.3.1",
"plugins": [
".",
".",
"https://downloads.wordpress.org/plugin/wp-crontrol.zip",
"https://downloads.wordpress.org/plugin/wordpress-importer.zip",
"https://downloads.wordpress.org/plugin/wordpress-importer.zip",
"https://downloads.wordpress.org/plugin/query-monitor.zip",
"https://downloads.wordpress.org/plugin/wp-mail-logging.zip"
"https://downloads.wordpress.org/plugin/wp-mail-logging.zip"
],
"port": 1000,
"testsPort": 1001,
Expand Down
5 changes: 1 addition & 4 deletions bin/setup-cypress-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@
# Install our example posts from a WP export file
./bin/wp-env-cli tests-wordpress "wp --allow-root import /var/www/html/wp-content/plugins/commonsbooking/cypress/wordpress-files/content-example.xml --authors=create"
# Create subscriber with username "subscriber" and password "password"
./bin/wp-env-cli tests-wordpress "wp --allow-root user create subscriber sub@sub.de --role=subscriber --user_pass=password"
# For some reason, some plugin activation tasks do not run in CI, so we deactivate and reactivate the plugin
./bin/wp-env-cli tests-wordpress "wp --allow-root plugin deactivate commonsbooking"
./bin/wp-env-cli tests-wordpress "wp --allow-root plugin activate commonsbooking"
./bin/wp-env-cli tests-wordpress "wp --allow-root user create subscriber sub@sub.de --role=subscriber --user_pass=password"

0 comments on commit 5d98e90

Please sign in to comment.