-
Notifications
You must be signed in to change notification settings - Fork 9k
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
fix upload files when array items are type=string format=binary #6040
Conversation
# Conflicts: # dist/swagger-ui-bundle.js # dist/swagger-ui-bundle.js.map # dist/swagger-ui.js # dist/swagger-ui.js.map
@JustMik please remove the dist/* from this PR. otherwise, looks good to me. Thanks! |
please build |
Hi @tim-lai .. Sorry but is my first contribution and i've some difficulty... Before first pull request i ran locally tests and they finished successfully... For remove dist/* , i've aligned my branch to head but test fails (bugs/4641.js)(locally and on github pipeline).. Can you give me some advice please? |
@JustMik Thanks for the followup. There are 2 items occurring. First, Second, your updated PR passes test on my local system. So that's good news from the PR perspective. However, can you provide config details on your local system? In the meantime, you can try |
@tim-lai CypressError: Timed out retrying: cy.its() errored because your subject is: 'null'. You cannot access any properties such as 'request' on a 'null' value. I'm working on Osx 10.15.5, npm 6.14.3.. Thank you for your support and let me know if you need other info. |
@JustMik Thanks for the info. What version of node are you using? Also, can you copy/paste the debug log here? |
@tim-lai I'm using node 13.11.0. ──────────────────────────────────────────────────────────────────────────────────────────────────── Running: bugs/4641.js (2 of 29) If you expect your subject to be 'null', then add an assertion such as: cy.wrap(null).should('be.null') |
@JustMik I merged a new fix for test bugs/4641. Please merge again with master, and let me know how it goes for you on local. Thanks! |
@tim-lai i merged from master but the first step of bug/4641 keeps failing. |
@JustMik hmm. Does the error log look the same? I'm curious, can you try updating Cypress version to v3.8.3 in Yes, it's working for my local, though bugs/4641 has always worked for me. I'm on Node v13.9. This test also periodically fails on Node v10.x. So I don't think it's Node. |
@JustMik an update: I made another change to the bugs/4641 test. I am able to update and merge your PR successfully. Thank you much for your contribution! If you have another few minutes, I would like to know if you are now able run and pass all tests on your local system. |
Now the test run successfully on my local. Thank you @tim-lai. |
Description
I changed condition of file item for type array properties.
An item is a file if:
Motivation and Context
This solve multiple files upload, as shown in attached screenshots.
How Has This Been Tested?
Screenshots (if appropriate):
Before fix:
![before](https://user-images.githubusercontent.com/25490442/83116929-bf364980-a0cc-11ea-8a20-8abb1dd3a277.png)
After fix:
![after](https://user-images.githubusercontent.com/25490442/83117017-d7a66400-a0cc-11ea-8019-7d26c5961a0b.PNG)
Checklist
My PR contains...
src/
is unmodified: changes to documentation, CI, metadata, etc.)package.json
)My changes...
Documentation
Automated tests