This repo has two Playwright tests for Redfin.com:
- Valid ZIP test – enters a real ZIP code and expects results
- Invalid ZIP test – enters an invalid ZIP code and expects an error message
- Make sure Node.js (>=16) is installed.
- Install dependencies:
npm install
npx playwright install
npx playwright test --headed
I am aware that Redfin sometimes shows an "Oops!" modal only during automated test runs.
This was not coded around here to keep the tests simple, but manual testing confirms that the site works correctly.