[QA] Reg::Running of links.feature tests

jagori samajdar jagori79 at gmail.com
Mon May 19 22:54:54 UTC 2014


Thanks Chris ..I should have updated my local branch when it failed just to
check.
Thanks for clarifying.

Regards,
Jagori


On Tue, May 20, 2014 at 1:27 AM, Chris McMahon <cmcmahon at wikimedia.org>wrote:

>
> Hi Jagori,
>
> 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.
>
> 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.
>
> -Chris
>
> On Mon, May 19, 2014 at 7:09 AM, jagori samajdar <jagori79 at gmail.com>wrote:
>
>> Hi,
>>
>> I was trying to execute links.feature by
>>
>> bundle exec cucumber features/links.feature
>>
>> I am not clear with certain things,if anybody could help me understand:
>>
>>    1. There's this URL which opens:
>>    http://en.wikipedia.beta.wmflabs.org/wiki/User:Jagori/?vehidebetadialog=true&veaction=edit
>>
>>  I was thinking why does  the edit link have vehidebetadialog .Also
>> there's this "/" in User:Jagori which doesnot lead to my user page
>> If I remove the "/" from between USER and BROWSER environment
>> variables,it seems to be working fine
>> page_url
>> URL.url("User:#{ENV['MEDIAWIKI_USER']}/#{ENV['BROWSER']}?vehidebetadialog=true")
>>
>> Maybe my understanding is incorrect.
>>
>
> Also the test is failing at :
>> timed out after 5 seconds, waiting for {:class=>"ve-ce-documentNode
>> ve-ce-branch
>> Node", :tag_name=>"div"} to become present (Watir::Wait::TimeoutError)
>> ./features/step_definitions/references_steps.rb:13:in `block (2 levels)
>> in <top
>> (required)>'
>> ./features/step_definitions/references_steps.rb:10:in `/^I click Edit for
>> Visual
>> Editor$/'
>> features\links.feature:7:in `When I click Edit for VisualEditor'
>>
>> 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:
>>
>>
>>    - page_url
>>    URL.url("User:#{ENV['MEDIAWIKI_USER']}#{ENV['BROWSER']}?vehidebetadialog=true")
>>
>>
>>
>>    - div(:content, class: "ve-ce-documentNode mw-content-ltr
>>    ve-ce-branchNode noime")
>>
>> Thanks,
>> Jagori
>>
>> _______________________________________________
>> QA mailing list
>> QA at lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/qa
>>
>>
>
> _______________________________________________
> QA mailing list
> QA at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/qa
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/qa/attachments/20140520/98d5d4d9/attachment-0001.html>


More information about the QA mailing list