Skip to content

Commit

Permalink
fix plugin activation sometimes not working
Browse files Browse the repository at this point in the history
  • Loading branch information
hansmorb committed Sep 11, 2023
1 parent 0c93dc1 commit 4fa6171
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 4 additions & 1 deletion bin/setup-cypress-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@
# 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"
./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"

0 comments on commit 4fa6171

Please sign in to comment.