Skip to content

Framework & CI/CD Interview Questions for Playwright

8 Framework & CI/CD questions with answers for playwright roles. Tick what you have solved to track your progress.

Sheet progressStart practicing
02

Tests are flaky in CI. How do you debug them?

Show answer
Turn on trace: 'on-first-retry', open the trace viewer, check network and timing, replace hard waits with web-first assertions, isolate test data and check for sharding conflicts.
03

How do you reuse login state across tests?

Show answer
Log in once in global setup, save storageState to a JSON file and set use.storageState in the config so every test starts logged in.
05

Design a Playwright framework for a 500-test suite.

Show answer
TypeScript + POM + custom fixtures, environment configs, API helpers for test data, tags like @smoke, sharding across CI machines, retries with traces, HTML/Allure reports, lint and review rules.
06

How do you write a Page Object in Playwright?

Show answer
A class receives page in its constructor, stores locators as properties and exposes actions like login(user, pass). Tests call page objects, not raw locators.
07

How do you run Playwright in GitHub Actions?

Show answer
Workflow: checkout → setup-node → npm ci → npx playwright install --with-deps → npx playwright test → upload playwright-report as an artifact.