[browser test] add when_present to link header check

I was surprised to find this missing, this was a mistake that
causes bogus failures

Change-Id: Iab38ef4db315993ca1f31c079f17be22ebf17d3c
This commit is contained in:
cmcmahon 2014-03-17 11:36:27 -07:00
parent 99ece6e6d0
commit f0731084da

View file

@ -4,7 +4,7 @@ When(/^I click the Link button$/) do
end
Given(/^I can see the Link User Inteface$/) do
on(VisualEditorPage).ve_link_ui.should match Regexp.escape("Hyperlink")
on(VisualEditorPage).ve_link_ui.when_present.should match Regexp.escape("Hyperlink")
end
When(/^I click the blue text$/) do