This repository contains a suite of Playwright tests designed to validate various functionalities of the My Portfolio website. It serves as an ongoing personal project to learn and experiment with Playwright.
- Verify page title
- Test navigation bar links
- Validate resume and cover letter PDF downloads
- Check social links functionality
- Ensure project links navigate to the correct pages
- Checks color changes on elements upon hovering
- Fills out contact form fields and validates alert message
- Gets computed style (color) of specific text and verifies it
- Finds and interacts with iFrame (embedded youtube video) (THIS SCRIPT WAS MADE WITH THE HELP OF AN AI ASSISTANT)
- Locates headers and confirms text
- Form submission and validation tests (THIS SCRIPT WAS MADE WITH THE HELP OF AN AI ASSISTANT)
Before running the tests, ensure you have the following installed:
- Node.js (version 14 or higher)
- Playwright
- Test files with CURSOR written in the title were made using cursor.sh AI assistant.
- This was done as a learning experience, and experimentation to refactor code.
- The superNovaCodeGen.spec.ts file was made using playwright code gen. Ultimatly I found it to very basic, only able to assert visiblity and simple functions.