所以我有一个应用程序,其中包含多个条目,这些条目是逗号分隔的电子邮件字符串。字符串位于文本区域元素中,可以在其中进行修改。应用程序使用JavaScript来修改这些字符串,我需要使用Capybara来观察验证目标字符串是否包含正确数量的电子邮件。为了说明我的意思,这里是my Cucumber (假设目标列表以5个电子邮件字符串开头):
When I remove the 3rd email under list one
Then I should see 4 emails under list one
When I click the "Cancel" button for l