Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antonyga/casa_del_libro_e2e_test_project
End to end Test Automation Project for https://www.casadellibro.com/
https://github.com/antonyga/casa_del_libro_e2e_test_project
e2e-tests playwright test-automation typescript
Last synced: 2 days ago
JSON representation
End to end Test Automation Project for https://www.casadellibro.com/
- Host: GitHub
- URL: https://github.com/antonyga/casa_del_libro_e2e_test_project
- Owner: antonyga
- Created: 2025-01-21T09:18:02.000Z (3 days ago)
- Default Branch: main
- Last Pushed: 2025-01-21T09:35:25.000Z (3 days ago)
- Last Synced: 2025-01-21T10:28:24.244Z (3 days ago)
- Topics: e2e-tests, playwright, test-automation, typescript
- Language: TypeScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Casa del Libro E2E Test Automation
๐ง๐งโ ๏ธโ ๏ธ๐ท PROJECT UNDER CONSTRUCTION ๐ทโ ๏ธโ ๏ธ๐ง๐งEnd-to-end test automation project for Casa del Libro (www.casadellibro.com) using Playwright and TypeScript. This project contains automated tests covering the main functionalities of the e-commerce platform.
## Technologies Used
- [Playwright](https://playwright.dev/) - Modern automation testing framework
- TypeScript - Programming language
- Node.js - Runtime environment## Prerequisites
- Node.js (v14 or higher)
- npm (Node Package Manager)## Installation
1. Clone the repository:
```bash
git clone [https://github.com/antonyga/casa_del_libro_e2e_Test_Project.git]
```2. Install dependencies:
```bash
npm install
```## Project Structure
```
โโโ tests/
โ โโโ e2e/
โ โ โโโ account-management/
โ โ โโโ book-searching/
โ โ โโโ book-details/
โ โ โโโ shopping-cart/
โ โ โโโ bookstores/
โ โโโ fixtures/
โ โโโ test-data.ts
โโโ page-objects/
โ โโโ HomePage.ts
โ โโโ SearchPage.ts
โ โโโ CartPage.ts
โ โโโ CheckoutPage.ts
โโโ config/
โ โโโ playwright.config.ts
โโโ utils/
โ โโโ helpers.ts
โโโ package.json
```## Test Scenarios Covered
- Product Search and Filtering
- Shopping Cart Operations
- User Account Management
- Product Categories Navigation
- Book Details Validation## Running Tests
Run all tests:
```bash
npm test
```Run specific test file:
```bash
npx playwright test tests/e2e/search.spec.ts
```Run tests in headed mode:
```bash
npx playwright test --headed
```## Generate Test Report
```bash
npx playwright show-report
```## Configuration
The project uses `playwright.config.ts` for configuration. You can modify the following settings:
- Browsers to test (Chrome, Firefox, Safari)
- Viewport sizes
- Test timeouts
- Parallel execution
- Screenshot and video capture settings## Best Practices
- Page Object Model design pattern
- Data-driven testing approach
- Explicit waits over implicit waits
- Meaningful test descriptions
- Isolated test cases
- Regular maintenance and updates## Contributing
1. Fork the repository
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request## Author
[Antony Garcia](https://github.com/antonyga)
## License
This project is licensed under the MIT License - see the LICENSE.md file for details