This repository contains automated tests written using Playwright to validate the functionality of a web application for creating user profiles. The tests cover various scenarios outlined in the provided user story and test cases.
To set up and run the automated tests locally, follow these steps:
-
Clone the repository:
git clone <repository_url> cd repository name
-
Install dependencies:
npm install
-
Configure test environment:
config.jsonspecifies the URL of the application under test and any other necessary configurations to be added.
-
Run the tests:
Run test on UI
bash npx playwright test --ui
The project structure follows the Page Object Model (POM) design pattern for organizing test automation code:
tests/: Contains test scripts written using Playwright to automate test cases.pages/: Contains page objects representing different pages of the web application.config.json: Configuration file for specifying test environment settings.package.json: Node.js package configuration file with dependencies and scripts.utils/: Contains utility functions used across the test scripts.Fixtures/: Contains text to be asserted and test data to be used across the test scripts.
After running the tests, detailed test reports will be generated in HTML format. These reports provide insights into the execution status of each test case, including passed and failed scenarios.
Issues: Github Issues contains all the test cases generated for the app, these can be identified by their labletest case. Those with statusClosehave already been automated while those with statusOpenare still to be automated. Bug were also reported in this section but with a red label namedBugWiki: Contains Additional Documentation Like the Test Scenarios and Challenges