<div dir="ltr"><div><div>Thanks Zeljko for helping me out with the conversion part.I was thinking , how to convert a single line statement like this:)<br><br></div>But I still remain confused about the documentation.<br><br>
If anybody could provide any other documentation would be wonderful.<br></div>Thanks,<br>jagori<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 14, 2014 at 10:21 PM, Željko Filipin <span dir="ltr"><<a href="mailto:zfilipin@wikimedia.org" target="_blank">zfilipin@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"><div class="gmail_extra"><div class="gmail_quote"><div class="">On Mon, Jul 14, 2014 at 11:28 AM, jagori samajdar <span dir="ltr"><<a href="mailto:jagori79@gmail.com" target="_blank">jagori79@gmail.com</a>></span> wrote:<br>


</div><div class=""><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>As part of my task wherein am converting the should syntax to expect,am bit confused with the <i>be_visible</i> matcher or whatever it is.<br>


</div></div></blockquote><div><br></div></div><div>For those of you that are not familiar with the bug, it is 66369[1].</div><div class=""><div> </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><div>I couldn't see it anywhere in the RSpec's default built in matcher list.</div>
</div><div><a href="https://github.com/rspec/rspec-expectations" target="_blank">https://github.com/rspec/rspec-expectations</a><br></div><div><br></div><div>Can anyone help me understand the same as in the pasted code defined in options_steps.rb:</div>



<div><br></div><div><div>Then(/^I should see the options overlay$/) do</div><div>  on(VisualEditorPage).options_page_title_element.when_present.should be_visible</div><div>end</div></div><div></div></div></blockquote><div>


<br></div></div><div>In this case, you have to convert</div><div><br></div><div>on(VisualEditorPage).options_page_title_element.when_present.should be_visible<br></div><div><br></div><div>to</div><div><br></div>expect((VisualEditorPage).options_page_title_element.when_present).to be_visible<br>


<div><br></div><div>Let me know if you are still confused, or if you need more documentation. If anybody can point to better documentation than I have provided in the last e-mail message, please do.</div><div><br></div><div>


Željko</div><div>--</div><div><a href="https://bugzilla.wikimedia.org/show_bug.cgi?id=66369" target="_blank">https://bugzilla.wikimedia.org/show_bug.cgi?id=66369</a> </div></div></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>