<div dir="ltr">On Wed, Nov 20, 2013 at 10:42 AM, Chris McMahon <span dir="ltr"><<a href="mailto:cmcmahon@wikimedia.org" target="_blank">cmcmahon@wikimedia.org</a>></span> wrote:<br><div><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div>The first step would be to run some tests under phantomjs. </div><div><br></div>
<div>I did a little research and found that following tests in the qa/browsertests repo pass when run under phantomjs locally:</div></div></blockquote><div><br></div><div>Very cool.<br><br></div><div><a href="https://www.mediawiki.org/wiki/Quality_Assurance/Browser_testing/Running_tests">https://www.mediawiki.org/wiki/Quality_Assurance/Browser_testing/Running_tests</a> says you can set BROWSER_LABEL but doesn't give the possible values.<br>
<br></div>I guessed at BROWSER_LABEL=phantomjs , and it sort of worked, see below. Is that what you did? Immediately my cursor froze and the Linux out-of-memory handler ran. :-/ I have PhantomJS 1.9.0 installed on Ubuntu 13.10<br>
<div><br>~/projects/core/extensions/Flow/tests/browser % BROWSER_LABEL=phantomjs KEEP_BROWSER_OPEN=true MEDIAWIKI_USER=Selenium_user MEDIAWIKI_PASSWORD=.... MEDIAWIKI_URL=<a href="http://ee-flow.wmflabs.org/wiki/">http://ee-flow.wmflabs.org/wiki/</a> bundle exec cucumber<br>
<br>Using the default profile...<br>.F----..F----<br><br>(::) failed steps (::)<br><br>Error Message => 'Click failed: TypeError: 'undefined' is not a function (evaluating 'load.bind(this,$node,content,contentFormat)')'<br>
caused by Request => {"headers":{"Accept":"application/json","Connection":"close","Content-Length":"2","Content-Type":"application/x-www-form-urlencoded","Host":"<a href="http://127.0.0.1:8910">127.0.0.1:8910</a>","User-Agent":"Ruby"},"httpVersion":"1.1","method":"POST","post":"{}","postRaw":"{}","url":"/click","urlParsed":{"anchor":"","query":"","file":"click","directory":"/","path":"/click","relative":"/click","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/click","queryKey":{},"chunks":["click"]},"urlOriginal":"/session/012acb90-5250-11e3-8642-999a5a74e2a5/element/%3Awdc%3A1384998936458/click"} (WebElementReqHand) (Selenium::WebDriver::Error::UnknownError)<br>
./features/step_definitions/flow_steps.rb:8:in `block (2 levels) in <top (required)>'<br>./features/step_definitions/flow_steps.rb:7:in `/^I create a (.+) in Flow new topic$/'<br>features/flow_anon.feature:7:in `When I create a Title of Flow Topic in Flow new topic'<br>
<br>Error Message => 'Click failed: TypeError: 'undefined' is not a function (evaluating 'load.bind(this,$node,content,contentFormat)')'<br> caused by Request => {"headers":{"Accept":"application/json","Connection":"close","Content-Length":"2","Content-Type":"application/x-www-form-urlencoded","Host":"<a href="http://127.0.0.1:8911">127.0.0.1:8911</a>","User-Agent":"Ruby"},"httpVersion":"1.1","method":"POST","post":"{}","postRaw":"{}","url":"/click","urlParsed":{"anchor":"","query":"","file":"click","directory":"/","path":"/click","relative":"/click","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/click","queryKey":{},"chunks":["click"]},"urlOriginal":"/session/20072f90-5250-11e3-a36b-3b9a28e15161/element/%3Awdc%3A1384998996434/click"} (WebElementReqHand) (Selenium::WebDriver::Error::UnknownError)<br>
./features/step_definitions/flow_steps.rb:8:in `block (2 levels) in <top (required)>'<br>./features/step_definitions/flow_steps.rb:7:in `/^I create a (.+) in Flow new topic$/'<br>./features/step_definitions/flow_steps.rb:40:in `/^I have created a Flow topic$/'<br>
features/flow_logged_in.feature:13:in `Given I have created a Flow topic'<br><br>Failing Scenarios:<br>cucumber features/flow_anon.feature:5 # Scenario: Add new Flow topic<br>cucumber features/flow_logged_in.feature:12 # Scenario: Add new Flow topic<br>
<br>2 scenarios (2 failed)<br>12 steps (2 failed, 8 skipped, 2 passed)<br>1m10.033s<br><br><br></div></div>-- <br><div dir="ltr">=S Page Features engineer<br></div>
</div></div></div>