Is it possible to attach a file from a shared folder instead of fixture folder ? #362
Unanswered
gluttony38
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I wonder if it is possible to attach a file from a shared folder instead of fixture folder, for example in code below,
readFileandwriteFileboth work properly:But for
attachFileI got following error (\server\path\to\UT\Cypressis actually repeated twice on each path):Is it just this is mandatory to attach file from a fixture or it is possible to do it from a shared folder and I'm just doing it wrong ?
From error I guess this is only doable from fixture, but in the other hand there is a specific
attachFixturefunction and I see in the readme that "attachFileon the other hand recognise cy.readFile, so a path within the project root folder needed" but as seen in my codereadFilecan actually also read a file from a shared folder, not only in "project root folder".Thanks.
Beta Was this translation helpful? Give feedback.
All reactions