小编Thi*_*ago的帖子

用黄瓜测试导轨的自动完成

我需要用黄瓜测试自动完成字段.我怎样才能做到这一点?我试过了

  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" 
Run Code Online (Sandbox Code Playgroud)

但后来它失败了,因为预计以下元素的内容包括"foo".有任何想法吗?

autocomplete ruby-on-rails cucumber

2
推荐指数
1
解决办法
1102
查看次数

标签 统计

autocomplete ×1

cucumber ×1

ruby-on-rails ×1