Skip to content

sabali33/inpsyde-user-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This plugin is a Gutenberg block that allows for an overview of a custom user post type to be shown.

Installation

    1. 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 have wp-env package installed, clone this repository to a docker supported directory.
    1. 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.

Testing

Unit Testing

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

End-to-End Testing

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:

  1. In package.json file change http://localhost:3601/ to your environment local development URL.
  2. Make sure the WordPress installation against which the test will run has a user with username and password set to admin and password respectively

Usage

  1. 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.
  2. To display a user from the step above go to Pages > Add New.
  3. Click on the Gutenberg locks plus icons to display list of blocks available. Search for User Overview and select it from the results.
  4. On the auto focus text field search for the use you want to display, then select from the resulting list.
  5. Publish the post.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages