Getting absolute file path #29631
Unanswered
jiridusil
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Before running a test I need to update a yaml file on a file system outside of 'cypress' folder.
Example:
Under 'fixtures' folder I have a following directory structure:
-> env1 -> config.yaml
-> env2 -> config.yaml
-> env3 -> config.yaml
Before running a test I need to copy particular config.yaml from above to folder 'Users/jiri/source/'.
I want to use
cy.exec('cp source_file target_folder');
The question is how to get an absolute (full) path of the config.yaml file from 'fixtures'. Thank you so much in advance.
Beta Was this translation helpful? Give feedback.
All reactions