无法找到选项“中”(Capybara :: ElementNotFound)

时间:2013-06-04 18:07:02

标签: ruby-on-rails cucumber capybara

此测试运行正常,但突然停止工作并发出错误说无法找到选项“Medium”(Capybara :: ElementNotFound)。这是我的功能文件,它运行得很好。

@no-database-cleaner
Feature: Managing users parent child relationships
  In order to use portal
  I want to create parent child relationships

  Scenario:  Creating a child user with new abc_id
    Given the database contains no test data
    And an user exists
    Given I am on the homepage

    When I attempt to sign in with following user account:
      | email address         | password |
      | xyz@company1.com   | password |

    Then I should see "abc@company1.com" message on page
    When I follow "All Child Users"
    Then I should see "Add Sub Child"
    When I click "Add Sub Child"
    Then I should see "Child Sub User"
    And I fill in "Email" with "xyztest@gmail.com"
    And I select "Medium" from "user_default_filter_level"
    And I choose "abc_id_yes"
    When I press "Create Child User"
    Then I should see "Child User is successfully created."

有什么想法吗?为什么突然这一行And I select "Medium" from "user_default_filter_level"正在破裂?

0 个答案:

没有答案