fixed error in "checked?" tests

This commit is contained in:
Marc Seeger 2011-07-16 19:34:31 +02:00
parent 90e561b296
commit 2ad577fb0c
1 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ describe Capybara::Driver::Webkit do
<div id="invisible">Can't see me</div>
</div>
<input type="text" disabled="disabled"/>
<input id="check_test" type="checkbox" checked="checked"/>
<input id="checktest" type="checkbox" checked="checked"/>
<script type="text/javascript">
document.write("<p id='greeting'>he" + "llo</p>");
</script>
@ -255,7 +255,7 @@ describe Capybara::Driver::Webkit do
end
it "reads checked property" do
subject.find("//input[@id='check_test']").should be_checked
subject.find("//input[@id='checktest']").first.should be_checked
end
it "finds visible elements" do