End-to-End Testing
Protractor, Cypress, Playwright, selectors, page objects, async handling, test strategies
1What is Cypress?
What is Cypress?
Answer
Cypress is a modern JavaScript-based E2E testing framework running directly in the browser. It provides an intuitive API, automatic command retries, and visual debugging. Unlike Protractor (deprecated since 2021), Cypress offers a superior developer experience for testing modern Angular applications.
2Why is Protractor no longer maintained since 2021?
Why is Protractor no longer maintained since 2021?
Answer
The Angular team stopped maintaining Protractor in 2021 because it relied on Selenium WebDriver, an increasingly outdated technology. Cypress and Playwright offer modern, more performant architectures for E2E testing. Migration to these tools is recommended for new projects.
3What is the main difference between Cypress and Playwright?
What is the main difference between Cypress and Playwright?
Answer
Cypress runs in the browser with a single architecture, offering optimal integration but supporting one browser per session. Playwright uses an out-of-browser architecture enabling cross-browser testing in one session (Chrome, Firefox, Safari). Choose Cypress for single-browser Angular or Playwright for complex multi-browser testing.
What is the role of a selector in E2E testing?
Which HTML attribute to prefer for test selectors in Angular?
+15 interview questions
Other Angular interview topics
TypeScript Basics
TypeScript Advanced
Angular Fundamentals
Components & Lifecycle
Services & Dependency Injection
Angular Modules Organization
Angular CLI
Directives & Pipes
Routing & Navigation
Reactive Forms
Template-driven Forms
RxJS Fundamentals
RxJS Operators
HttpClient & API Calls
Basic State Management
Change Detection
Angular Signals
Standalone Components
Angular Unit Testing
Build & Optimization
NgRx Fundamentals
NgRx Advanced
Angular Architecture
Performance Optimization
Security & Best Practices
Advanced RxJS Patterns
Angular Universal & SSR
Angular Micro-frontends
Master Angular for your next interview
Access all questions, flashcards, technical tests, code review exercises and interview simulators.
Start for free