This plugin is a Gutenberg block that allows for an overview of a custom user post type to be shown.
-
- Upload the plugin files to the
/wp-content/plugins/inpsyde-user
directory, or install the plugin through the WordPress plugins screen directly. Or if you havewp-env
package installed, clone this repository to a docker supported directory.
- Upload the plugin files to the
-
- Activate the plugin through the 'Plugins' screen in WordPress. For wp-env environment, reference the plugin path in wp-env.json file through the 'plugins' property.
Run vendor/bin/phpunit
in the plugin root folder. Of course ensure you run the bin/install-wp-tests.sh. For more on this please refer to Here
In wp-env
environment, simple run npm run test:e2e
. In package.json file you can pass the --puppeteer-interactive flag to launch chromium browser.
For other environments:
- In package.json file change
http://localhost:3601/
to your environment local development URL. - Make sure the WordPress installation against which the test will run has a user with username and password set to
admin
andpassword
respectively
- Once installation is complete go to Dashboard > Inpsyde users > Add new, to add an Inpsyde user. Add as many as required. At least the First name field is required to add the user. You may leave the title empty. It will be auto completed with the first and last names provided.
- To display a user from the step above go to Pages > Add New.
- Click on the Gutenberg locks plus icons to display list of blocks available. Search for
User Overview
and select it from the results. - On the auto focus text field search for the use you want to display, then select from the resulting list.
- Publish the post.