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
-
Hi,
I wonder if it is possible to attach a file from a shared folder instead of fixture folder, for example in code below,
readFile
andwriteFile
both work properly:But for
attachFile
I got following error (\server\path\to\UT\Cypress
is 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
attachFixture
function and I see in the readme that "attachFile
on the other hand recognise cy.readFile, so a path within the project root folder needed" but as seen in my codereadFile
can 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