Skip to content

Commit

Permalink
Add failing spec for color input
Browse files Browse the repository at this point in the history
At present when attempting to set a value on a color input, the value is
always set to "#000000" not matter what value you attempt to set it to.
  • Loading branch information
norman committed Sep 7, 2020
1 parent 0f5b3ea commit ff7b308
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/integration/session_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,12 @@
FileUtils.rm_f(filename)
end
end

it "sets a value for a color input" do
element = @session.find(:css, "#change_me_color")
element.set("#ddeeff")
expect(element.value).to eq("#ddeeff")
end
end

describe "Node#visible" do
Expand Down
1 change: 1 addition & 0 deletions spec/support/views/with_js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<input type="text" name="change_me_withname" id="change_me_withname">
</p>
<p><input type="file" name="change_me_file" id="change_me_file"></p>
<p><input type="color" name="change_me_color" id="change_me_color"></p>
<p id="changes"></p>
<p id="changes_on_input"></p>
<p id="changes_on_keydown"></p>
Expand Down

0 comments on commit ff7b308

Please sign in to comment.