Cypress Automation如何在另一个功能文件中调用功能文件

Cypress Automation如何在另一个功能文件中调用功能文件,cypress,Cypress,我在cypress中使用cucumber,我有多个功能文件。我的一个功能文件依赖于另一个功能文件。是否可以在要素文件中调用不同的要素文件? 所以为了运行JJ.feature文件,我必须先让它运行test2.feature文件 在这种情况下,我只想运行JJ.feature,这是依赖的 --> integeration folder | ---> test folder | ---> l

我在cypress中使用cucumber,我有多个功能文件。我的一个功能文件依赖于另一个功能文件。是否可以在要素文件中调用不同的要素文件? 所以为了运行JJ.feature文件,我必须先让它运行test2.feature文件

在这种情况下,我只想运行JJ.feature,这是依赖的

--> integeration folder
        |
        ---> test folder
               |
                 ---> login.feature
               |---> login folder --> login.js
               |---> test2.featuer (@login then all then run the rest Scenario)
                |---- test2 folder -> test.js(it should run login first)
                |---> JJ.featuer (@login @test1 and @test2 needs to run first then all then run the rest Scenario)
                |---- JJ folder -> jj.js(it should run login first)