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

jagori samajdar jagori79 at gmail.com
Tue May 20 00:36:35 UTC 2014


Hi Chris,
I had some queries:


   - What should I set for MEDIAWIKI_API_URL?It's prompting me to specify
   this env variable before running.


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

Do correct me if am wrong about anything.

Thanks,
Jagori







Thanks,
Jagori



On Tue, May 20, 2014 at 8:54 AM, jagori samajdar <jagori79 at gmail.com> wrote:

> 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/95c96deb/attachment.html>


More information about the QA mailing list