Skip to content

Commit be75207

Browse files
committed
issue#58 - add spec: 'picks option in select'
1 parent 4fee08a commit be75207

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spec/node_spec.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,15 @@ module Ferrum
8383
expect(links.first.text).to eq("Open for match")
8484
end
8585

86+
it "picks option in select" do
87+
browser.goto("/ferrum/form")
88+
input = browser.at_xpath("//*[@id='form_title']")
89+
expect(input.value).to eq "Mrs"
90+
input.click
91+
input.type("Miss", :Enter)
92+
expect(input.value).to eq "Miss"
93+
end
94+
8695
context "when the element is not in the viewport" do
8796
before do
8897
browser.go_to("/ferrum/with_js")

0 commit comments

Comments
 (0)