Recall & Review
beginner
What is responsive breakpoint testing?
It is testing a website or app at different screen sizes to make sure it looks and works well on all devices like phones, tablets, and desktops.
Click to reveal answer
beginner
Why do we test at different breakpoints?
Because websites change layout and style at certain screen widths called breakpoints, testing ensures the site stays usable and pretty on all devices.
Click to reveal answer
intermediate
How can Cypress help with responsive breakpoint testing?
Cypress can set the browser size to different widths and heights during tests, so you can check how your site behaves at each breakpoint automatically.
Click to reveal answer
beginner
Example of setting viewport size in Cypress?
Use cy.viewport(width, height) to change the browser size. For example, cy.viewport(375, 667) sets the size to a small phone screen.
Click to reveal answer
beginner
What should you check at each breakpoint during testing?
Check that all buttons, text, images, and menus are visible and usable. Also, check that no content is cut off or overlapping.
Click to reveal answer
What does cy.viewport(1024, 768) do in Cypress?
✗ Incorrect
cy.viewport(width, height) sets the browser window size to test responsive layouts.
Why is responsive breakpoint testing important?
✗ Incorrect
Responsive breakpoint testing ensures the site looks and works well on phones, tablets, and desktops.
Which of these is NOT a common breakpoint size?
✗ Incorrect
5000px is not a typical breakpoint size used in responsive design.
In Cypress, how do you test multiple breakpoints efficiently?
✗ Incorrect
Using cy.viewport() with different sizes in tests automates checking multiple breakpoints.
What should you NOT ignore when testing responsive breakpoints?
✗ Incorrect
While background color matters, the main focus is on content visibility, layout, and usability.
Explain how you would write a Cypress test to check a website at three different breakpoints.
Think about setting viewport sizes and running assertions for each.
You got /4 concepts.
Why is it important to test responsive breakpoints in automated tests rather than only manually?
Consider benefits of automation vs manual testing.
You got /4 concepts.