An automated test framework for eBay website testing using Playwright.
This project is a test automation framework built with Playwright that validates eBay web application functionality. It includes search and filter functionality tests.
├── config.js # Configuration settings
├── package.json # Project dependencies
├── pages/
│ └── EbayHomePage.js # Page Object Model for eBay homepage
├── tests/
│ └── test.spec.js # Test specifications
├── TestData/
│ └── testdata1.json # Test data for test cases
└── README.md # Documentation
- Node.js (v14 or higher)
- npm or yarn
- Clone the repository:
git clone https://github.com/salmaatty/Luftborn_AutomationTask.git
cd Luftborn_AutomationTask- Install dependencies:
npm installUpdate config.js with your test environment settings as needed.
Test data is stored in TestData/testdata1.json and includes:
- Search parameters
- Filter entries
Run all tests:
npm testOr using Playwright directly:
npx playwright testRun tests in headed mode:
npx playwright test --headedRun tests with debugging:
npx playwright test --debug- Navigates to eBay
- Performs a search using test data
- Applies filters
- Validates results count before and after filtering
Located in pages/EbayHomePage.js, includes methods:
navigate()- Navigate to eBay homepagesearch(query)- Perform search with given queryfilter(filterEntry)- Apply filter to resultsgetResultsCount()- Get count of search results
@playwright/test- Testing framework- Additional dependencies as listed in
package.json
salmaatty
MIT