场景在背景之前执行

时间:2018-11-02 14:59:25

标签: cucumber bdd cypress

Background:
    Given I launch App
    And I click on "Shop" link on the selfcare header
    And I am on "shop" page

Scenario: Updating the saved address when the user updated the address in  "Confirm Your Location" modal
    Given I set "ELIGIBILITY_ADDRESS" in local storage with a address

“我启动应用程序” 在后台会清除本地存储并打开应用程序的主页

我在本地存储中设置“ ELIGIBILITY_ADDRESS”的地址会在本地存储中设置ELIGIBILITY_ADDRESS

但是“ ELIGIBILITY_ADDRESS”已在其自身启动的应用程序之前立即设置,并且在执行背景操作后会清晰可见

从技术上讲,场景应在后台执行,为什么它立即执行

我正在使用Cypress Framework执行自动化

和cypress-cucumber-预处理器

https://github.com/TheBrainFamily/cypress-cucumber-preprocessor/issues

0 个答案:

没有答案
相关问题