我应该assert
在步骤以外的任何 BDD 步骤中使用then
吗?
我试图了解如何使用 Specflow 来描述“更改用户配置文件”。
SCENARIO I can change a user
Given I am at the roles page
And I can see a list of users
When I click a user's name
| field | value |
| User | John Doe |
And I change the user's name
| field | value |
| User | Jane Doe |
And I click the 'modify' button
Then I should the user updated in the list
我认为,第二个给定步骤And I can see a list of users
应该在实现中有一个断言?