> + expect{ browser.div(:id, 'bar').wait_until_present() }.to
> raise_error(Watir::Wait::TimeoutError,
> + /^timed out after 1 seconds, waiting for (\{:id=>"bar",
> :tag_name=>"div"\}|\{:tag_name=>"div", :id=>"bar"\}) to become present$/
> + )
> + end
> +
> + it "is used by Element#wait_while_present" do
> + expect{ browser.div(:id, 'foo').wait_while_present() }.to
> raise_error(Watir::Wait::TimeoutError,
> + /^timed out after 1 seconds, waiting for (\{:id=>"foo",
> :tag_name=>"div"\}|\{:tag_name=>"div", :id=>"foo"\}) to disappear$/
> + )
> + end
> + end
> +
> + after do
> + # Reset the default timeout
> + Watir.default_timeout = 30
> + end
Can you move the after block to right after the before block? That's more
consistent with our other specs.
---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/pull/230/files#r7875131
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development