测试协会我是新来的导轨和黄瓜,我想测试以下情形黄瓜
Background:
Given I have a Group named Group 1
And I go to the list of groups
And I have the following users records
| name | description | group_id |
| user 1 | | 1 |
| user 2 | | 1 |
When I follow Details for Group 1
Scenario: List users from group
Then I should see "user 1"
And I should see "user 2"
所以,在我的用户控制器的索引动作我列出所有的用户从GROUP_ID ,但我不知道如何使用黄瓜进行测试,因为每次运行测试时,我的组名都有一个不同的ID。
有谁知道如何解决这个问题?
感谢名单使用ID