Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/massimilianovisintainer/raketech-test-automation
This repository contains Playwright automated tests for verifying Casino Guide website navigation and an GET API request to SWAPI.
https://github.com/massimilianovisintainer/raketech-test-automation
javascript playwright test-automation
Last synced: about 2 months ago
JSON representation
This repository contains Playwright automated tests for verifying Casino Guide website navigation and an GET API request to SWAPI.
- Host: GitHub
- URL: https://github.com/massimilianovisintainer/raketech-test-automation
- Owner: MassimilianoVisintainer
- Created: 2024-02-04T17:32:33.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-04T17:33:32.000Z (11 months ago)
- Last Synced: 2024-02-04T19:50:52.182Z (11 months ago)
- Topics: javascript, playwright, test-automation
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Raketech-Test-Automation
This repository contains Playwright automated tests for verifying Casino Guide website navigation and an GET API request to SWAPI.
## Test cases
- Verifying the functionality of navigating to the Casino Guide website through the search functionality on the homepage.
- Verifying the skin color of the character "R2-D2" retrieved from the Star Wars API.## Installation
1. Ensure you have Node.js installed on your machine.
```bash
node -v
```
3. Clone this repository to your local machine:```bash
git clone https://github.com/MassimilianoVisintainer/Raketech-Test-Automation.git
```4. Install dependencies using npm:
```bash
npm install
```## Running Tests
- To run both Playwright tests:
```bash
npx playwright test
```- To run Casino Guide Website test:
```bash
npx playwright test casinoGuideWebsite.spec.js
```- To run the GET API test:
```bash
npx playwright test peopleApi.spec.js
```## Test Descriptions
### Playwright Test Suite
#### Verify Casino Guide Website Navigation through Search Functionality
- Navigate to the homepage of Raketech website.
- Use the search functionality to look for Products Page.
- Access to the Products page.
- Navigate to the Casino Guide page.
- Open the Casino Guide website in a new tab and assert the URL.### API Request Test
#### Check R2-D2 Skin Color
- Send a GET request to the SWAPI to retrieve information about characters.
- Find the character with the name "R2-D2".
- Assert that the skin color of R2-D2 contains "white" and "blue".## File Structure
- **pages/**: Contains page objects for different pages.
- **test/**: Contains Playwright test scripts.
- **base/** : Contains common elements present in the website.## Page Objects
- **HomePage**: Represents the homepage of the website.
- **ProductsPage**: Represents the products page.
- **CasinoGuidePage**: Represents the Casino Guide page.
- **HeaderPage**: Represents the header section of the website. This element is stored in the base folder, as it is shared by multiple components of the website.