【问题标题】:How can I use fixture elements in exec ? Cypress如何在 exec 中使用夹具元素?柏
【发布时间】:2021-10-23 13:58:33
【问题描述】:

我正在尝试在 exec 中使用 fixtures 元素,但它不起作用。

cy.exec('ssh ${this.config.ssh} ${this.config.path} ')

你能帮帮我吗?这样可以用fixture吗?

【问题讨论】:

    标签: exec cypress


    【解决方案1】:

    尝试使用 'require' 导入 我使用这样的固定装置:const quote = require('../fixtures/quote.json')

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-01-27
      • 2021-12-29
      • 2019-05-09
      • 1970-01-01
      • 1970-01-01
      • 2021-08-07
      • 1970-01-01
      • 2021-07-01
      相关资源
      最近更新 更多