{"id":11747,"date":"2020-03-28T11:27:35","date_gmt":"2020-03-28T10:27:35","guid":{"rendered":"http:\/\/flaven.fr\/?post_type=bf_videos_manager&#038;p=11747"},"modified":"2021-03-20T15:27:29","modified_gmt":"2021-03-20T14:27:29","slug":"testing-the-wordpress-rest-api-using-chai-and-codeceptjs","status":"publish","type":"bf_videos_manager","link":"https:\/\/flaven.fr\/videos\/testing-the-wordpress-rest-api-using-chai-and-codeceptjs\/","title":{"rendered":"Testing the WordPress REST API using Chai and CodeceptJS"},"content":{"rendered":"<p>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.<\/p>\n<p>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.<\/p>\n<p>This Video #9 is part of a serie of 10 Videos for the BOOK #3 &#8220;Redefining a testing automation strategy for a P.O. with CodeceptJS &#038; WordPress&#8221;The continuous learning trilogy&#8221;<\/p>\n<p>Amazon: https:\/\/www.amazon.com\/dp\/B0865TT96K\/<br \/>\nGithub: https:\/\/bit.ly\/2wUoAfU<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&hellip; <\/p>\n<p class=\"text-center\"><a href=\"https:\/\/flaven.fr\/videos\/testing-the-wordpress-rest-api-using-chai-and-codeceptjs\/\" class=\"more-link\">Continue reading &rarr; <span class=\"screen-reader-text\">Testing the WordPress REST API using Chai and CodeceptJS<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":11711,"comment_status":"open","ping_status":"closed","template":"","bf_videos_manager_tag":[2707,2708,2773,2686,2755,2754,2770,2769,2753,2759,2699,2745],"bf_videos_manager_cat":[2681,2705,2682,2767,2772,2732,2721,2679,2680,2723],"class_list":["post-11747","bf_videos_manager","type-bf_videos_manager","status-publish","has-post-thumbnail","hentry","bf_videos_manager_tag-agile","bf_videos_manager_tag-agile-toolkit","bf_videos_manager_tag-chai","bf_videos_manager_tag-cms","bf_videos_manager_tag-learning","bf_videos_manager_tag-learning-by-doing","bf_videos_manager_tag-quality","bf_videos_manager_tag-quality-management","bf_videos_manager_tag-testing","bf_videos_manager_tag-training","bf_videos_manager_tag-validation","bf_videos_manager_tag-wordpress","bf_videos_manager_cat-development","bf_videos_manager_cat-devops","bf_videos_manager_cat-experiences","bf_videos_manager_cat-news","bf_videos_manager_cat-quality-management","bf_videos_manager_cat-testing","bf_videos_manager_cat-training","bf_videos_manager_cat-tutorials","bf_videos_manager_cat-videos","bf_videos_manager_cat-wordpress"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/bf_videos_manager\/11747","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/bf_videos_manager"}],"about":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/types\/bf_videos_manager"}],"author":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/comments?post=11747"}],"version-history":[{"count":1,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/bf_videos_manager\/11747\/revisions"}],"predecessor-version":[{"id":11749,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/bf_videos_manager\/11747\/revisions\/11749"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/media\/11711"}],"wp:attachment":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/media?parent=11747"}],"wp:term":[{"taxonomy":"bf_videos_manager_tag","embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/bf_videos_manager_tag?post=11747"},{"taxonomy":"bf_videos_manager_cat","embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/bf_videos_manager_cat?post=11747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}