黄瓜 - 你能去吗?

时间:2015-09-12 04:34:46

标签: ruby-on-rails cucumber

这种格式是否正常?

 Background:
    Given I am at the homepage
    When I supply my shopify url

 Scenario: New install
    Then I get taken to Oauth page
    When I supply my shopify credentials
    Then I get taken to the app index page

我不希望Oauth页面在每个场景之前运行,只需要前两个步骤。

1 个答案:

答案 0 :(得分:1)

您可以更改Background,如下所示 -

 Background:
  Given I am at the homepage
  And I supply my shopify url

Scenario: New install
  Then I get taken to Oauth page
  When I supply my shopify credentials
  Then I get taken to the app index page