{"id":719,"date":"2019-06-17T03:00:03","date_gmt":"2019-06-17T03:00:03","guid":{"rendered":"https:\/\/thinkcolorful.org\/?p=719"},"modified":"2020-11-21T15:42:23","modified_gmt":"2020-11-21T15:42:23","slug":"mediawiki-extensions-growthexperiments","status":"publish","type":"post","link":"https:\/\/thinkcolorful.org\/?p=719","title":{"rendered":"Mediawiki Extensions: GrowthExperiments"},"content":{"rendered":"\n<p>Started working on test coverage for an extension called <a href=\"https:\/\/www.mediawiki.org\/wiki\/Extension:GrowthExperiments\">GrowthExperiments<\/a>.  This extension adds in new features for the user&#8217;s homepage, welcome survey, help panel and confirmation email. I wrote the <a href=\"https:\/\/gerrit.wikimedia.org\/r\/#\/c\/mediawiki\/extensions\/GrowthExperiments\/+\/515001\/\">first selenium test<\/a> for the repository as it had no selenium test coverage at all.  It was pretty straight forward but I did get hung up on installing dependencies, so my first patch was missing an updated package-lock.json file which was created only after I updated the dependences with npm -i.  <\/p>\n\n\n\n<!--more-->\n\n\n\n<p>The second commit was a <a href=\"https:\/\/gerrit.wikimedia.org\/r\/#\/c\/mediawiki\/extensions\/GrowthExperiments\/+\/517200\/\">test that checks the presence of the GrowthExperiment&#8217;s new features<\/a> on the user&#8217;s homepage. I did this by coding this cucumber test:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Given admin logs in and selects user homepage on the Preferences page.<\/p><p>When I go to the admin page<\/p><p>Then I see the GrowthExperiment&#8217;s header.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Started working on test coverage for an extension called GrowthExperiments. This extension adds in new features for the user&#8217;s&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[214,216],"tags":[],"class_list":["post-719","post","type-post","status-publish","format-standard","hentry","category-javascript","category-qa"],"_links":{"self":[{"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=\/wp\/v2\/posts\/719","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=719"}],"version-history":[{"count":5,"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=\/wp\/v2\/posts\/719\/revisions"}],"predecessor-version":[{"id":1076,"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=\/wp\/v2\/posts\/719\/revisions\/1076"}],"wp:attachment":[{"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=719"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}