Test Overview
This test opens a webpage and takes a full-page screenshot to verify the entire page is captured correctly.
This test opens a webpage and takes a full-page screenshot to verify the entire page is captured correctly.
describe('Full-page Screenshot Test', () => { it('should capture a full-page screenshot', () => { cy.visit('https://example.cypress.io') cy.screenshot({ capture: 'fullPage' }) }) })
| Step | Action | System State | Assertion | Result |
|---|---|---|---|---|
| 1 | Test starts | Test runner initialized, no browser opened yet | - | PASS |
| 2 | Browser opens | Browser window opens ready for testing | - | PASS |
| 3 | Navigates to 'https://example.cypress.io' | Page loads fully with visible content | Page URL is correct and page is loaded | PASS |
| 4 | Takes a full-page screenshot using cy.screenshot({ capture: 'fullPage' }) | Screenshot captures entire scrollable page content | Screenshot file is created and saved | PASS |
| 5 | Test ends | Screenshot saved, browser ready to close | - | PASS |