【发布时间】:2010-08-07 21:28:40
【问题描述】:
我需要用黄瓜测试一个自动完成字段。我怎样才能做到这一点?我试过了
Scenario: Using Autocomplete
Given I am on the home page
And there are the following users:
|id |name |
|1 |foo |
When I fill in "name" with "f"
Then I should see "foo"
但是它失败了,因为预期以下元素的内容包含“foo”。 有什么想法吗?
【问题讨论】:
标签: ruby-on-rails autocomplete cucumber