Cucumber: undefined step, although step should be defined

后端 未结 1 1655
失恋的感觉
失恋的感觉 2021-01-24 07:59

I have created the step:

    Given /^the feed \"([^\"]*)\" has an item \"([^\"]*)\" published at \"([^\"]*)\"$/ do |feed_name, feed_item_title, published_at|
  f         


        
相关标签:
1条回答
  • 2021-01-24 08:43

    In your step you need the " " around Twitter so use it same about Majbrasa

    Scenario: feed items should be sorted by date
        Given I am signed into an account called "GT" as a customer
        And there is a social feed called "Twitter" for the account "GT"
        And the feed "Twitter" has an item "Majbrasa" published at "2010-05-01"
    
    0 讨论(0)
提交回复
热议问题