End-to-end test suite built with Playwright that validates the Fyle marketing homepage. The tests cover SEO metadata, accessibility landmarks, key content sections, footer links, and the "Get a Demo" contact form.
- Node.js 18 or newer
- npm (ships with Node.js)
Install the project dependencies and the Playwright browser binaries:
npm install
npx playwright installRun the full suite across Chromium, Firefox, and WebKit:
npx playwright testCommon variations:
# Run with the interactive UI runner
npx playwright test --ui
# Run a single browser project
npx playwright test --project=chromium
# Run a single spec file
npx playwright test src/example.spec.ts
# Run in headed mode to watch the browser
npx playwright test --headedAn HTML report is generated after each run. Open the most recent one with:
npx playwright show-report.
├── src/
│ └── example.spec.ts # Test suite for the Fyle homepage
├── playwright.config.ts # Playwright configuration (browsers, reporter, etc.)
├── playwright-report/ # Generated HTML report
├── test-results/ # Generated test artifacts (traces, error context)
└── package.json
Test behavior is controlled by playwright.config.ts:
- Test directory:
./src - Browsers: Desktop Chrome, Desktop Firefox, Desktop Safari
- Parallelism: fully parallel
- Reporter: HTML
- CI behavior: retries failed tests twice and runs with a single worker when
CIis set
The base URL under test is defined in src/example.spec.ts as
https://www.fylehq.com/.