File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
rb/spec/integration/selenium/webdriver Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,9 @@ class BiDi
171171 end
172172
173173 driver . navigate . to url_for ( 'formPage.html' )
174- expect ( driver . page_source ) . to include ( 'Hello World!' )
174+ source = driver . page_source
175+ expect ( source ) . not_to include ( 'There should be a form here:' )
176+ expect ( source ) . to include ( 'Hello World!' )
175177 end
176178 end
177179 end
Original file line number Diff line number Diff line change @@ -272,7 +272,9 @@ module WebDriver
272272 response . provide_response
273273 end
274274 driver . navigate . to url_for ( 'formPage.html' )
275- expect ( driver . page_source ) . to include ( 'Hello World!' )
275+ source = driver . page_source
276+ expect ( source ) . not_to include ( 'There should be a form here:' )
277+ expect ( source ) . to include ( 'Hello World!' )
276278 end
277279 end
278280
You can’t perform that action at this time.
0 commit comments