Friday, July 22, 2022

[FIXED] How can I use fixture elements in exec ? Cypress

Issue

I m trying to use fixtures element inside exec but it doesnt work.

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

Could you please help me? Is it possible to use fixture in this way?


Solution

Try to import with 'require' I use fixtures like this: const quote = require('../fixtures/quote.json')



Answered By - Vitor Araujo
Answer Checked By - Timothy Miller (PHPFixing Admin)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.