Browser testing end to end

Cypress Interview Questions

Command chains, retry-ability, network stubbing, fixtures and stable Cypress suites in CI.

Quiz me
40 questions10 easy22 medium8 hard0/40 learned
01What is Cypress and what problem does it solve?Easycypress · e2e testing · test runner02How does Cypress architecture work?Mediumarchitecture · runner · browser03How does Cypress compare with Playwright?Mediumplaywright · comparison · e2e testing04How do you set up a Cypress project?Easysetup · configuration · typescript05How do you write your first Cypress test?Easyfirst test · describe · it06How does the Cypress command chain work?Mediumcommand queue · chaining · async07How should you choose selectors in Cypress?Mediumselectors · locators · dom08Why use data-cy attributes for testing?Easydata-cy · selectors · testability09How do assertions work in Cypress?Mediumassertions · chai · should10How does Cypress retry-ability work?Hardretry-ability · flakiness · asynchronous11What are aliases and how do you use them?Mediumaliases · as · wait12How do fixtures work in Cypress?Easyfixtures · test data · json13How do you write custom Cypress commands?Mediumcustom commands · commands · typescript14Should you use the page object model in Cypress?Mediumpage objects · app actions · structure15How do before, beforeEach, afterEach and after work?Easyhooks · lifecycle · setup16How does test isolation work in Cypress?Mediumtest isolation · state · cleanup17How does network interception work in Cypress?Mediumnetwork · interception · proxy18How do you use cy.intercept with request and response handlers?Mediumcy.intercept · route handler · request19How do you stub network responses for different UI states?Mediumstubbing · fixtures · error states20What is the right way to wait in Cypress?Hardwaiting · flakiness · network21How do Cypress timeouts work and when should you change them?Mediumtimeouts · configuration · debugging22How do you test APIs with cy.request?Hardapi testing · cy.request · contract23How do you test file uploads in Cypress?Mediumfile upload · selectFile · forms24How do you test drag-and-drop interactions in Cypress?Harddrag and drop · events · interaction25How do you interact with iframes in Cypress?Hardiframes · contentDocument · cross-origin26How do you trigger browser events in Cypress?Mediumevents · trigger · keyboard27How do you manage cookies and local storage in Cypress?Easycookies · localstorage · browser state28How do you handle authentication in Cypress tests?Mediumauthentication · login · session29How does cy.session work and when should you use it?Hardcy.session · caching · authentication30How do screenshots work in Cypress?Easyscreenshots · artifacts · debugging31How does video recording work in Cypress?Easyvideos · artifacts · ci32How do you debug a failing Cypress test?Mediumdebugging · devtools · pause33What is the Cypress Test Runner and what does it show?Mediumtest runner · open mode · command log34How do headless Cypress runs work?Easyheadless · cypress run · ci35How does parallel test execution work in Cypress?Mediumparallelization · ci · sharding36How do you diagnose and fix flaky Cypress tests?Hardflakiness · reliability · races37How does Cypress component testing work?Mediumcomponent testing · mount · react38How do you test accessibility with Cypress?Mediumaccessibility · axe · a11y39How do you run Cypress in CI?Mediumci · github actions · automation40What are the most important Cypress best practices?Hardbest practices · maintainability · reliability

Reading is step one

Now say it out loud.

Understanding an answer and delivering it under pressure are different skills. Rehearse this topic in a live Cypress mock interview and get scored feedback on depth, clarity and confidence.