<div dir="ltr">Just to clarify, AFAIK the <a href="https://www.relishapp.com/rspec/rspec-expectations/v/3-0/docs/built-in-matchers/predicate-matchers">predicate matcher</a> syntax has not changed, so there's no need to change `be_visible`. As Zeljko has illustrated, it's only the <a href="https://www.relishapp.com/rspec/rspec-expectations/docs">expectation syntax</a> that needs refactoring.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 15, 2014 at 1:07 AM, jagori samajdar <span dir="ltr"><<a href="mailto:jagori79@gmail.com" target="_blank">jagori79@gmail.com</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><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"><div><div class="h5">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>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>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><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><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></div></div>_______________________________________________<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></blockquote></div><br></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><br clear="all"><div><br></div>-- <br><div dir="ltr">Dan Duvall<div>Automation Engineer</div><div><a href="http://wikimediafoundation.org" target="_blank">Wikimedia Foundation</a><br></div></div>
</div>