-
Notifications
You must be signed in to change notification settings - Fork 672
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
Unable to proceed to next step after upload file when using setFilesToUpload function #8173
Comments
Hello, I tried reproducing the issue and indeed, it does not automatically proceed to next steps after file uploading. However, I noticed that there is an error, after we call setFilesToUpload:
|
Hello, I tried uploading other allowed formats (pptx, pdf) and it doesn't go through each time when using automation. I assume that TestCafe supports the upload of docx, pptx and pdf files. When I opened the console log of the automated browser, I notice an error that points to hammerhead hammerhead.js:42066 This leads me to believe that the error might be on the TestCafe side as it mentions hammerhead I also tried to upload the file with a different automation framework as a test (which also uses an input file method) and it worked fine which further leads me to believe that the issue is on the TestCafe side Also, looks like other users might have been seeing an issue with something similar as well but they probably couldn't provide a working example |
Hello, I tried running your usage scenario again and made sure that file uploading works as expected with
https://testcafe.io/documentation/402808/recipes/basics/test-file-upload#observe-input-state Could you please share a Minimal Working Example that we can run locally? |
Hello, this doesn't proceed onto the next step though. Once the file is uploaded, it should move on to the next steps of analyzing the documents and it doesn't do so in automation. Here is a screenshot of where TestCafe stops Here is where it should do after an upload, I listed the steps to reproduce the proper flow manually and I believe you tried it and saw it
Here is a video of how it will look after an upload (doing this manually): 23.04.2024_10.00.23_REC.mp4The minimally working example is present in the steps to reproduce and in the repo that I provided. I will adjust the automation in the sample repo that I provided to assert that the next step is visible and it will fail because the next steps after the upload don't go through. |
Hello, I understand that after uploading a file, it should move on to the next steps. I managed to reproduce this behavior using your example. However, we can not determine the cause of the issue without seeing the logic behind your source code. As I mentioned earlier, there could be differences between manually clicking the upload and using setFilesToUpload. By "Minimal Working Example", I meant a simple page with file upload and the logic of the next automatic steps. In this minimal example, we don't have to navigate to https://www.chegg.com. Thank you for your understanding. |
@Bayheck Hello, looks like this issue resolved itself for our team. We didn't even need to go to version 3.6, it was fixed with 3.5. Thanks for your help. |
@ayemelyanenko-chegg I have the same problem in v3.6.0, did you guys updated something to make the step after de setFilesToUpload work? |
@Gandhi11 No, it just resolved itself in our case. Seems like our developers made some changes to the code that got TestCafe upload function to work. |
What is your Scenario?
Would like to upload file and move on automatically to next step after it uploads
What is the Current behavior?
File is seemingly uploaded but the automatic next step doesn't start
What is the Expected behavior?
File should be uploaded and then automatic next step should start (as seen in manual mode)
What is the public URL of the test page? (attach your complete example)
www.chegg.com
What is your TestCafe test code?
Your complete configuration file
No response
Your complete test report
No response
Screenshots
No response
Steps to Reproduce
To see correct behavior manually:
TestCafe version
3.5
Node.js version
No response
Command-line arguments
npx testcafe chrome tests/sampleUploadTest.ts -L
Browser name(s) and version(s)
No response
Platform(s) and version(s)
No response
Other
No response
The text was updated successfully, but these errors were encountered: