<div dir="ltr">If bandwidth is too low, perhaps we can address this when working with Chris next iteration.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 19, 2014 at 4:14 PM, Jon Robson <span dir="ltr"><<a href="mailto:jrobson@wikimedia.org" target="_blank">jrobson@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">I'm still waiting for help with this...</div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Mar 4, 2014 at 11:19 AM, Jon Robson <span dir="ltr"><<a href="mailto:jrobson@wikimedia.org" target="_blank">jrobson@wikimedia.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It doesn't seem to work for my use case...<br>
<br>
When I try:<br>
<div>Then(/^I see an upload progress bar$/) do<br>
</div> on(ArticlePage) do |page|<br>
page.progress_header_element.when_present<br>
page.progress_header_element.when_not_present(20)<br>
end<br>
end<br>
<br>
I see:<br>
Then I see an upload progress bar #<br>
features/step_definitions/uploads_steps.rb:60<br>
timed out after 5 seconds, waiting for {:class=>"uploading",<br>
:tag_name=>"h2"} to become present (Watir::Wait::TimeoutError)<br>
./features/step_definitions/uploads_steps.rb:62:in `block (2<br>
levels) in <top (required)>'<br>
./features/step_definitions/uploads_steps.rb:61:in `/^I see an<br>
upload progress bar$/'<br>
features/uploads_page.feature:10:in `Then I see an upload progress bar'<br>
<br>
It really is a case of blink and you miss it...<br>
<div><div><br>
On Tue, Mar 4, 2014 at 6:33 AM, Chris McMahon <<a href="mailto:cmcmahon@wikimedia.org" target="_blank">cmcmahon@wikimedia.org</a>> wrote:<br>
><br>
> See if this would do what you want:<br>
> <a href="https://gerrit.wikimedia.org/r/#/c/115659/" target="_blank">https://gerrit.wikimedia.org/r/#/c/115659/</a><br>
><br>
> It works pretty well, there are a couple of other similar checks in the<br>
> repos.<br>
><br>
><br>
> On Mon, Mar 3, 2014 at 7:34 PM, Jon Robson <<a href="mailto:jrobson@wikimedia.org" target="_blank">jrobson@wikimedia.org</a>> wrote:<br>
>><br>
>> Anyone?<br>
>><br>
>> On Fri, Feb 28, 2014 at 2:15 PM, Jon Robson <<a href="mailto:jrobson@wikimedia.org" target="_blank">jrobson@wikimedia.org</a>> wrote:<br>
>> > I have two things I want to write tests for.<br>
>> > 1) When a user clicks on a link in alpha on mobile the page loads via<br>
>> > JavaScript and an ajax loader appears.<br>
>> ><br>
>> > 2) When a user uploads an image, after hitting submit they see a<br>
>> > progress bar.<br>
>> ><br>
>> > Both of these elements typically appear for a short period of time<br>
>> > before disappearing.<br>
>> ><br>
>> > Using the following rule:<br>
>> ><br>
>> > Then(/^I see an upload progress bar$/) do<br>
>> > on(ArticlePage).progress_header_element.when_present.should be_visible<br>
>> > end<br>
>> ><br>
>> > When I watch the test run I see that the progress_header is in fact<br>
>> > visible, but Watir does not find it. If I update the JavaScript so the<br>
>> > progress header never disappears, then the test passes.<br>
>> ><br>
>> > Is there some kind of time interval for checking this sort of thing?<br>
>> ><br>
>> > For reference here is the patch...<br>
>> > <a href="https://gerrit.wikimedia.org/r/#/c/116167/" target="_blank">https://gerrit.wikimedia.org/r/#/c/116167/</a><br>
>> ><br>
>> > Any ideas how to deal with this sort of browser test?<br>
>><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>
><br>
><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>
</div></div></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Arthur Richards<div>Software Engineer, Mobile</div><div>[[User:Awjrichards]]</div><div>IRC: awjr</div><div>+1-415-839-6885 x6687</div>
</div>