Cypress Tutorial For Beginners : Part 2 ( Upload a File )
In this video cypress tutorial for beginners, We are going to learn how to upload a file in cypress and create our first script to test to upload a file and check that file is uploaded successfully.
Contents
Cypress Upload File
You need to install
- Download the node module : npm i cypress-file-upload
2. Require it in your script
import 'cypress-file-upload';
3. Now use the Fixture method to upload the file.
const fileName = 'data.json';
cy.fixture(fileName).then(fileContent => {
cy.get('[data-cy="file-input"]').upload({ fileContent, fileName, mimeType: 'application/json' });
});
-----------------------------------------------------
👪 Join our Community - http://bit.ly/learntesting2019
✅ Automation Community - https://thetestingacademy.com
🐦Follow us on Twitter - https://twitter.com/itstechmode
📖 Like us on Facebook - https://www.facebook.com/scrolltest
🎤 Listen to our Podcast - https://anchor.fm/thetestingacademy
------------------------------------------------------
#automationtesting #manualtesting #testautomation #thetestingacademy #scrolltest
The Harsh Truth About BDD: Why Your .feature Files Are a Maintenance Nightmare
Contents The Acceptance Test Framework That Promised Collaboration and Delivered Pain Valentina
QA’s Invisible Value: How to Frame Testing as Revenue Protection, Not a Cost Centre
A few weeks ago, Anna Tomilova posted a single sentence on LinkedIn
How to Build an AI-Powered E2E Framework With Zero-Cost AI Layer (Playwright + ZeroStep + Claude AI)
API + UI Hybrid Automation: The Test Data Strategy That Eliminates Flakiness
Ashirbad Rout, a senior SDET whose automation frameworks run across banking and
5 Things AI Is Changing Forever in QA (And How to Become an AI Quality Strategist)
Contents The Head of Product Engineering Who Predicted Your Obsolescence Daniel Knott,
Performance Testing With JMeter in 2026: The Most Demanded SDET Skill You’re Probably Ignoring
Open any SDET job posting in 2026. Go ahead, pick one. Scroll

Thank you! It was very helpful
it was helpful but facing issue in cypress-file -upload command when we are running it on jenkins there is any method that we can use ?
Hey!
How can I upload a (.side) file?
How to pass all parameters with blob(images,auio.etc) in cypress API testing