This repository contains a test automation framework for automating tasks on the Todoist website using TestCafe and JavaScript.
To use this framework, you need to have the following software installed on your machine:
To install the necessary dependencies, follow these steps:
- Clone this repository:
git clone https://github.com/karimelkomy/lodgify.git
- Navigate to the project directory:
cd lodgify
- Install dependencies:
npm install
- Create an account on https://todoist.com/app/settings/integrations/developer
- Change .env.at to .env and fill EMAIL, PASSWORD and API_TOKEN
The tests are written using TestCafe's JavaScript API. The test files are located in the tests
directory. To create a new test, you can add a new JavaScript file in this directory.
You can refer to the TestCafe documentation to learn more about writing tests with TestCafe.
To run the tests, use the following command:
yarn at
This command will execute all the test files located in the tests
directory.
You can also specify a specific test to run by providing --customTest
as an argument:
yarn at --customTest validate-create-project
After running the tests, the framework generates an HTML Allure report that provides detailed information about the test results. The report is located in the allure
directory. and it will open directly.
Video Recording for the test scenarios can be found Here