<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">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>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>