Description: Calculator App is a simple web application designed for basic arithmetic calculations. Built with HTML, CSS, and JavaScript, it offers a straightforward interface for performing addition, subtraction, multiplication, and division operations.
This app is a convenient tool for maths. It leverages JavaScript to handle the logic behind operations, and I've assured quality within the application through Cypress and JS for the automated end-to-end testing.
- Simple Interface: The app features a clean and minimalist design, making it easy for users to input numbers and operators.
- Arithmetic Operations: Users can perform addition, subtraction, multiplication, and division operations seamlessly.
- All Clear and Delete Functions: With the "AC" button, users can clear all operands, while the "DEL" button allows for the deletion of the last entered character.
- Responsive Design: The app adapts to different screen sizes, ensuring a consistent user experience across devices.
To use the Calculator App, simply open the index.html file in any web browser of your choice. The calculator interface will be displayed, ready for calculations.
- Test cases in Excel, check this Google Sheets document.
- Cypress test results, check this screenshot.
The app includes Cypress tests to validate its functionality. Follow these steps to run the tests:
- Ensure Cypress is installed (
npm install cypress --save-dev). - Navigate to the
cypressdirectory. - Run
cypress opento open the Cypress Test Runner. - Click on the test file (
calculator_spec.js) to execute the tests.