Playwright + TS ·
3. Interfaces & Test Data Contracts
Prev
Next
Statement
Submissions
Solution
AI Help
3. Interfaces & Test Data Contracts
Listen
Defining Data Contracts with Interfaces
interface TestEnvironment { baseUrl: string; port: number; ssl: boolean; }
Task
Complete the `TestEnvironment` interface by declaring types for `baseUrl`, `port`, and `ssl`.
💡
Common doubts
Why use interfaces over plain JavaScript objects?
Did you like the problem?
Lesson 3 of 12
TypeScript
Reset
Copy
Loading code editor…
Submit
Next