Testing the WordPress REST API using Chai and CodeceptJS

This time, I show you how to make test behind the GUI meaning the screens. In this example, with the help of specific WordPress Plugin using a Custom Post Type, 2 Custom Taxonomies and ACF (Advanced Custom Fields Plugin), I test the WordPress REST API with assertions written with Chai.

For your information, Chai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework.

This Video #9 is part of a serie of 10 Videos for the BOOK #3 “Redefining a testing automation strategy for a P.O. with CodeceptJS & WordPress”The continuous learning trilogy”

Amazon: https://www.amazon.com/dp/B0865TT96K/
Github: https://bit.ly/2wUoAfU

Related Content

28th Mar 2020

Publications


More ressources

  • Amazon Book
  • Github Repository
  • Youtube Video

Tag(s) : , , , , , , , , , , ,
Categorie(s) : , , , , , , , , ,