{"id":8873,"date":"2022-03-30T10:40:43","date_gmt":"2022-03-30T09:40:43","guid":{"rendered":"https:\/\/europe.wordcamp.org\/2022\/?post_type=wcb_session&#038;p=8873"},"modified":"2022-06-03T10:18:40","modified_gmt":"2022-06-03T09:18:40","slug":"automated-testing-made-easy","status":"publish","type":"wcb_session","link":"https:\/\/europe.wordcamp.org\/2022\/session\/automated-testing-made-easy\/","title":{"rendered":"Automated Testing Made Easy (Session Full)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Testing WordPress websites and applications can be time-consuming and labor-intensive. Yet, most people manually test their work in the browser&#8230; assuming they do any testing at all. Bring up automated testing and most people will write it off as complicated, a maintenance burden, or they simply don&#8217;t understand the value. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this hands-on developer workshop, we will be learning to use Cypress, an end-to-end JavaScript testing framework that makes automated testing easy. Essentially, Cypress acts as a user on your website by visiting pages, filling out forms, and clicking buttons. It can also validate CSS, perform accessibility checks, and run tests across different viewport sizes and browsers. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The beauty of end-to-end testing is that tests are quicker to write and are more robust than any other type of testing. A unit test will only tell you if a function is working properly, but an end-to-end test can alert you if something in the code, the database, or even the design isn&#8217;t right. If you are new to testing, this is the place to start!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Testing WordPress websites and applications can be time-consuming and labor-intensive. Yet, most people manually test their work in the browser&#8230; assuming they do any testing at all. Bring up automated testing and most people will write it off as complicated, a maintenance burden, or they simply don&#8217;t understand the value. In this hands-on developer workshop, &hellip; <a href=\"https:\/\/europe.wordcamp.org\/2022\/session\/automated-testing-made-easy\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Automated Testing Made Easy (Session Full)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":9114287,"featured_media":0,"template":"","meta":{"_crdt_document":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_wcpt_session_time":1654329600,"_wcpt_session_duration":7200,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[12258],"footnotes":""},"session_track":[49],"session_category":[53],"class_list":["post-8873","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-workshop-2","wcb_session_category-development"],"jetpack_sharing_enabled":true,"session_date_time":{"date":"4 June 2022","time":"09:00"},"session_speakers":[{"id":"12258","slug":"micah-wood","name":"Micah Wood","link":"https:\/\/europe.wordcamp.org\/2022\/speaker\/micah-wood\/"}],"session_cats_rendered":"Development","_links":{"self":[{"href":"https:\/\/europe.wordcamp.org\/2022\/wp-json\/wp\/v2\/sessions\/8873","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/europe.wordcamp.org\/2022\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/europe.wordcamp.org\/2022\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":6,"href":"https:\/\/europe.wordcamp.org\/2022\/wp-json\/wp\/v2\/sessions\/8873\/revisions"}],"predecessor-version":[{"id":16202,"href":"https:\/\/europe.wordcamp.org\/2022\/wp-json\/wp\/v2\/sessions\/8873\/revisions\/16202"}],"speakers":[{"embeddable":true,"href":"https:\/\/europe.wordcamp.org\/2022\/wp-json\/wp\/v2\/speakers\/12258"}],"author":[{"embeddable":true,"href":"https:\/\/europe.wordcamp.org\/2022\/wp-json\/wporg\/v1\/users\/wpscholar"}],"wp:attachment":[{"href":"https:\/\/europe.wordcamp.org\/2022\/wp-json\/wp\/v2\/media?parent=8873"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/europe.wordcamp.org\/2022\/wp-json\/wp\/v2\/session_track?post=8873"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/europe.wordcamp.org\/2022\/wp-json\/wp\/v2\/session_category?post=8873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}