This repository contains a series of testing challenges using Playwright to practice handling different UI testing scenarios. Each challenge focuses on specific aspects of web testing and requires fixing existing tests to make them more robust and reliable.
Node.js (v18 or higher)
git clone https://github.com/vasu31dev/playwright-challenges.git
cd playwright-challenges
Install dependencies
npm install
- Test multiple successful login attempts
- Verify success messages and user data
- Handle dynamic content
- Practice proper assertions
- Test login with animated form elements
- Handle delayed loading states
- Test logout functionality
- Work with menu interactions
- Test forgot password functionality
- Handle modal dialogs
- Verify success states
- Practice proper assertions
- Test login considering application ready state
- Handle global variables
- Test profile interactions
- Verify logout functionality
This project includes several tests to ensure the functionality of the animated form. The tests are written using Playwright and can be found in the flaky.spec.ts
file.
- Login multiple times successfully: This test logs in three times with different credentials and verifies successful login messages.
- Login and logout successfully with animated form and delayed loading: This test logs in and logs out, handling animated forms and delayed loading.
- Forgot password: This test verifies the forgot password functionality and checks for success messages.
- Login and logout: This test logs in and logs out, ensuring the app is in a ready state before proceeding.
To run the tests, use the following command:
npx playwright test