Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nadvolod/ai-in-web-presentation
https://github.com/nadvolod/ai-in-web-presentation
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nadvolod/ai-in-web-presentation
- Owner: nadvolod
- Created: 2024-09-10T10:25:11.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-27T20:56:37.000Z (12 days ago)
- Last Synced: 2024-10-27T23:48:58.003Z (12 days ago)
- Language: TypeScript
- Size: 60.3 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Contact List API Test Suite
## I'm Nikolay Advolodkin
- š Iām the founder of [Ultimate QA](https://ultimateqa.com/)
- š„ Like my content? [Buy me a salad](https://www.buymeacoffee.com/nikolaya)
- š« How to reach me:
- [Youtube where you can learn at your pace](https://www.youtube.com/ultimateqa?sub_confirmation=1)
- [Test JavaScript Like a Pro](https://ultimateqa.ck.page/js-testing-tips)
- [LinkedIn](https://www.linkedin.com/in/nikolayadvolodkin/)
- [Twitter for great Dev quotes](https://twitter.com/intent/follow?screen_name=nikolay_a00®ion=follow_link)
- š Pronouns: he/him
- ā” Fun fact: I'm a vegan who's passionate about the š, saving š®, and bridging the technical divide!## Project Overview
This project contains a comprehensive test suite for the Contact List API, which is hosted at https://thinking-tester-contact-list.herokuapp.com. The test suite is written in TypeScript using Playwright and Axios for making HTTP requests.
## Features
The test suite covers the following main features of the Contact List API:
1. User Management
- User registration
- User login
- User profile retrieval
- User profile update
- User logout
- User deletion2. Contact Management
- Adding a new contact
- Retrieving the contact list
- Getting a specific contact
- Updating a contact (full update)
- Partially updating a contact
- Deleting a contact## Prerequisites
To run this test suite, you need to have the following installed:
- Node.js (version 12 or higher)
- npm (Node Package Manager)## Installation
1. Clone this repository to your local machine.
2. Navigate to the project directory.
3. Install the dependencies by running:## Configuration
The base URL for the API is set in the `BASE_URL` constant in the test file. If you need to test against a different environment, update this constant accordingly.
## Running the Tests
To run the entire test suite, use the following command:
## Test Structure
The tests are organized into two main describe blocks:
1. Contact List API Tests
2. User API TestsEach block contains multiple test cases that cover different aspects of the API functionality.
## Authentication
The test suite handles authentication automatically. It creates a new user before running the tests and uses the generated authentication token for subsequent requests. The user is deleted after all tests are completed.
## Error Handling
The tests use Playwright's built-in assertion library to check for expected responses and data. Any failures will be reported in the test output.
## Contributing
If you want to contribute to this project, please follow these steps:
1. Fork the repository
2. Create a new branch for your feature
3. Make your changes and commit them
4. Push to your fork and submit a pull request## License
[Include your chosen license here]
## Contact
[Your contact information or where to report issues]