<div dir="ltr">Hi Chris,<div>I had some queries:</div><div><div><br></div><div><ul><li>What should I set for MEDIAWIKI_API_URL?It's prompting me to specify this env variable before running.<br></li></ul></div><div><ul>
<li>Also where are the steps under Background usually defined?By that am referring to links.feature file Background: Given I go to the "Links VisualEditor Test" page with content "Links VisualEditor Test" I was trying to have a look at the step definition file for this</li>
<li>Also,was seeing under env.rb :mediawiki_api is a required gem.What purpose does it serve?I know mediawiki_selenium gem has code for login and some shared steps but I wasn't clear with the mediawiki_api.Also I couldn't locate anything related to this on github.</li>
</ul><div>Do correct me if am wrong about anything.</div><div><br></div><div>Thanks,</div><div>Jagori</div><div><br></div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Thanks,</div>
<div>Jagori</div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 20, 2014 at 8:54 AM, jagori samajdar <span dir="ltr"><<a href="mailto:jagori79@gmail.com" target="_blank">jagori79@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Chris ..I should have updated my local branch when it failed just to check.<div>Thanks for clarifying.<br>
<div><br></div><div>Regards,</div><div>Jagori</div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Tue, May 20, 2014 at 1:27 AM, Chris McMahon <span dir="ltr"><<a href="mailto:cmcmahon@wikimedia.org" target="_blank">cmcmahon@wikimedia.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br><div>Hi Jagori, </div><div><br></div><div>This is something I fixed about a week ago. If you update your repo, you'll find that the links test now uses the mediawiki API to create a page at run time called "Links VisualEditor Test" and uses that page instead of the User:foo/ENV['BROWSER']} page. <br>
</div><div><br></div><div>Also, the identifier for the contentEditable div changed in that time. Again, I think that if you update your repo the test will be a lot more reliable. </div><div><br></div><div>-Chris </div><div>
<br></div><div class="gmail_extra"><div class="gmail_quote"><div><div>On Mon, May 19, 2014 at 7:09 AM, jagori samajdar <span dir="ltr"><<a href="mailto:jagori79@gmail.com" target="_blank">jagori79@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I was trying to execute links.feature by</div>
<div><br></div><div>bundle exec cucumber features/links.feature </div><div><br></div><div>I am not clear with certain things,if anybody could help me understand:</div>
<div><ol><li>There's this URL which opens:<a href="http://en.wikipedia.beta.wmflabs.org/wiki/User:Jagori/?vehidebetadialog=true&veaction=edit" target="_blank">http://en.wikipedia.beta.wmflabs.org/wiki/User:Jagori/?vehidebetadialog=true&veaction=edit</a></li>
</ol><div> I was thinking why does the edit link have vehidebetadialog .Also there's this "/" in User:Jagori which doesnot lead to my user page</div></div><div>If I remove the "/" from between USER and BROWSER environment variables,it seems to be working fine</div>
<div><div>page_url URL.url("User:#{ENV['MEDIAWIKI_USER']}/#{ENV['BROWSER']}?vehidebetadialog=true")</div></div><div><br></div><div>Maybe my understanding is incorrect.</div></div></blockquote><div>
<br></div></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr">
<div>Also the test is failing at :</div>
<div><div>timed out after 5 seconds, waiting for {:class=>"ve-ce-documentNode ve-ce-branch</div><div>Node", :tag_name=>"div"} to become present (Watir::Wait::TimeoutError)</div><div>./features/step_definitions/references_steps.rb:13:in `block (2 levels) in <top</div>
<div>(required)>'</div><div>./features/step_definitions/references_steps.rb:10:in `/^I click Edit for Visual</div><div>Editor$/'</div><div>features\links.feature:7:in `When I click Edit for VisualEditor'</div>
</div><div><br></div><div>Changing these to the below in visualeditor_page.rb ,seemed to work fine but since am new to this so I am not sure if am correct:</div><div><br></div><div><ul><li>page_url URL.url("User:#{ENV['MEDIAWIKI_USER']}#{ENV['BROWSER']}?vehidebetadialog=true")<br>
</li></ul></div><div><br></div><div><ul><li>div(:content, class: "ve-ce-documentNode mw-content-ltr ve-ce-branchNode noime") </li></ul><div>Thanks,</div></div><div>Jagori</div></div>
<br></div></div>_______________________________________________<br>
QA mailing list<br>
<a href="mailto:QA@lists.wikimedia.org" target="_blank">QA@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/qa" target="_blank">https://lists.wikimedia.org/mailman/listinfo/qa</a><br>
<br></blockquote></div><br></div></div>
<br>_______________________________________________<br>
QA mailing list<br>
<a href="mailto:QA@lists.wikimedia.org" target="_blank">QA@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/qa" target="_blank">https://lists.wikimedia.org/mailman/listinfo/qa</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>