This repository contains my personal practice scripts for learning and improving my skills in TestCafe, a Node.js tool for automated end-to-end testing of web applications.
- Basic examples to get familiar with TestCafe syntax
- Practice tests for logging in, form submission, navigation, etc.
- Use of selectors, assertions, and page actions
- Organized by test case for easy understanding
Make sure you have Node.js installed, then install TestCafe:
npm install -g testcafeOr if using locally in your project:
npm install --save-dev testcafeUse this command to run any test file (replace with your preferred browser):
testcafe chrome tests/example.test.jsOr run all tests:
testcafe chrome tests//tests β Main test files
/pages β Optional page objects (for cleaner code)
README.md β This file
The purpose of this repo is to practice:
- Writing clean and simple test cases
- Understanding how TestCafe works
- Preparing for real-world testing projects or interviews
This is not a production-ready project, just a learning space.
Feel free to explore, clone, or adapt these scripts for your own learning. Happy testing!