Skip to content

Commit 6187c23

Browse files
committed
Remove non-unique ID - chatbox template is used for each channel so we can't use an ID here (without violating standards anyway!)
1 parent fc93ad8 commit 6187c23

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

app/assets/templates/chatbox.jst.eco

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<textarea class="chat-input" id="chat-input"></textarea>
1+
<textarea class="chat-input"></textarea>
22
<button class="post">Post</button>

spec/features/login_spec.rb

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,20 @@
2323
page.should have_content(@user.first_name)
2424
page.should have_content(@user.last_name)
2525

26-
fill_in "chat-input", :with => "Hello there"
26+
chat_input = find(:css, ".chat-input")
27+
chat_input.set "Hello there"
2728
click_button "Post"
2829

2930
within("#channel-activities-1") do
3031
page.should have_content("Hello there")
3132
end
3233

33-
fill_in "chat-input", :with => "Hi again"
34+
chat_input.set "Hi again"
3435
click_button "Post"
3536

3637
within("#channel-activities-1") do
3738
page.should have_content("Hi again")
3839
end
3940

4041
end
41-
end
42+
end

0 commit comments

Comments
 (0)