<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">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><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"><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>_______________________________________________<br>
QA mailing list<br>
<a href="mailto:QA@lists.wikimedia.org">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>