Skip to content

Commit a37fe57

Browse files
committed
Tagifyのテストでsleepをなくし、Capybaraの待機機能を使用
1 parent ebfe84d commit a37fe57

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/supports/tag_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
module TagHelper
44
def fill_in_tag(name, selector = '.tagify__input')
5+
find('.tagify', wait: 10)
56
tag_input = find(selector)
6-
sleep 1
77
tag_input.set name
88
tag_input.native.send_keys :return
99
end
1010

1111
def fill_in_tag_with_alert(name, selector = '.tagify__input')
12+
find('.tagify', wait: 10)
1213
tag_input = find(selector)
13-
sleep 1
1414
tag_input.set name
1515
accept_alert do
1616
tag_input.native.send_keys :return

0 commit comments

Comments
 (0)