We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Uploading file to a hidden input ends up with below error:
CypressError: Timed out retrying: cy.trigger() failed because this element is not visible: This element '<input#image-upload>' is not visible because it has CSS property: 'display: none' Fix this problem, or use {force: true} to disable error checking. https://on.cypress.io/element-cannot-be-interacted-with
CypressError: Timed out retrying: cy.trigger() failed because this element is not visible:
This element '<input#image-upload>' is not visible because it has CSS property: 'display: none'
Fix this problem, or use {force: true} to disable error checking.
https://on.cypress.io/element-cannot-be-interacted-with
There is no way to pass option { force: true } as an error message suggests. Current workaround is calling .invoke('show') before calling .upload():
{ force: true }
.invoke('show')
.upload()
cy.fixture('avatar.jpg').then((fileContent) => { cy.get('=image-upload input') .invoke('show') .upload( { fileContent, mimeType: 'image/jpeg' }, { subjectType: 'input' } ) })
.upload command accepts force option:
.upload
force
cy.fixture('avatar.jpg').then((fileContent) => { cy.get('=image-upload input') .upload( { fileContent, mimeType: 'image/jpeg' }, { subjectType: 'input', force: true } ) })
The text was updated successfully, but these errors were encountered:
Hi @daniula Thanks for your contribution.
Just released v3.0.5! Check out the new API and re-open issue in case of any further issues.
@allcontributors[bot] add @daniula for question
Sorry, something went wrong.
@abramenal
I've put up a pull request to add @daniula! 🎉
abramenal
No branches or pull requests
Current behavior:
Uploading file to a hidden input ends up with below error:
There is no way to pass option
{ force: true }
as an error message suggests. Current workaround is calling.invoke('show')
before calling.upload()
:Desired behaviour:
.upload
command acceptsforce
option:Versions
The text was updated successfully, but these errors were encountered: