Automation QA interview Cypress

Automation QA interview
Cypress
Trainee – junoir level

  1. Data types in JavaScript?
  2. Tell about Cypress automation framework
  3. What is Mocha and Chai testing?
  4. How do you trigger your automation?
  5. How many types of assertions are available in Cypress?
  6. Which tests should be automated at first?
  7. What design patterns have you used for test automation?
  8. What is Page Object?
  9. What are hooks in Cypress? What is Test Fixtures?
  10. What are the benefits of using Cypress for e2e testing?
  11. How do you handle different types of selectors on a page?
  12. What are the best practices for writing maintainable and scalable Cypress tests?
  13. How do you handle sensitive data such as passwords or tokens?
  14. When a test throws an error, how will you debug and identify the cause of the error?
  15. What is the difference between before/beforeEach and after/afterEach?
  16. What is an alias? How did you use it?
  17. Difference between cy.wait() and timeout? How did you use it?
  18. What is baseUrl in Cypress? How and where you can set it?
  19. How to iterate over a data array?
  20. Why you need to use .then in Cypress? When it may be used?
  21. How to intercept requests in Cypress?
  22. How to send an API request in Cypress?
  23. What is headed and headless mode in Cypress?
  24. What is CI/CD?
  25. What is Docker? Why do we need it?
  26. What browsers does Cypress work with?
  27. Why does Cypress execute commands sequentially instead of asynchronously?
  28. What is cy.session?
  29. What is Node.js?
  30. What are Classes and Constructors in JavaScript?
  31. What are TDD and BDD?
  32. What should we do with flaky tests? Does it makes sense to have them in the suite?