-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A fixture file could not be found at any of the following paths: #2
Comments
the naming in the image file and its path looks so weird to me... In the code you wrote In the error shows |
this time I tried this code t('Questionnaires ', function() { cy.get('.upload-button').attachFile(yourFiturePath) same error I got, if you help me to resolve, it's very helpful for me |
could you attach the error? I am pretty sure it is some issue regarding paths/naming |
Do you have a solution for resolving this issue, please help me, I am trying to resolve this issue from a long day |
So again, your code is looking for |
No, I am not passing twice path, and there is no special char at all cy.get('.upload-button').attachFile(yourFiturePath) |
Just remove
|
Yes I tried as you suggested this time I didn't get any error but still, the photo is not uploaded cy.get('.upload-button').attachFile(yourFiturePath) |
well now your problem from the logs is solved. You might have an additional one somewhere else :) |
yes but still the problem is not resolved, I am trying to resolve this, please let me know you have any solution for this |
as i said, the first problem is solved, you seem to have another one. If you want help, at least show the error :) |
i dont see any assertion checking whether the image got uploaded or not. How do you check? |
If you do it manually do you see the notification right after clicking save? no additional steps? maybe is a matter of waiting? I think you can debug the test running cypress in a visual mode, can you see the pop up there? |
Yes I after uploading picture it will show success message
…On Mon, 28 Sep, 2020, 2:54 pm Javier Aviles, ***@***.***> wrote:
If you do it manually do you see the notification right after clicking
save? no additional steps?
maybe is a matter of waiting?
I think you can debug the test running cypress in a visual mode, can you
see the pop up there?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOY2SKA6O7J66VUECVQVBITSIBI53ANCNFSM4R3KWYZA>
.
|
maybe is a matter of waiting? |
manually once I select a picture from local, it will upload the picture then immediately it will show the message, no delay after uploaded the picture |
maybe not visually but there is some, try maybe waiting half a second there |
yes, I tried but it's not working, the picture is not uploading |
why are you so sure of that? |
is the command |
yes on this form image is optional |
but you are clicking save right after uploading the image, so probably is moving to some other page and notification is never there? |
No Scenario is the success message will show before I clicking on the save button |
if you run cypress test in visual mode, can you see how it uploads the image? maybe play with some big waitings so you have time to check |
i see in Visual mode hd4 is -FILE hd4 nothing happened it is a DOM snapshot also tried with 10000 waits |
@javieraviles what is the cypress version you are using?? |
That's exactly what the |
I am getting the same error. Please help me out to resolve it. My cypress version is "cypress": "^9.4.1" |
I am also getting exactly same errors which @akashtippa123 mentioning. |
I am also getting the same error , my cypress version is 12.3.0 |
pls try to delete "fixturesFolder" from cypress.config.js/ts, |
Code
it('Questionnaires ', function() {
const yourFiturePath = 'cypress\fixtures\pic\hd4.jpg
cy.get('.upload-button').attachFile(yourFiturePath)
cy.get('.save').click()
}
hd4.jpg file is present in the given path but It's giving me the error
The text was updated successfully, but these errors were encountered: