Test Overview
This test runs a simple login check using Cypress integrated in a CI pipeline. It verifies that the login button is visible and clickable, ensuring the app is ready for continuous testing in CI.
This test runs a simple login check using Cypress integrated in a CI pipeline. It verifies that the login button is visible and clickable, ensuring the app is ready for continuous testing in CI.
describe('Login Page CI Test', () => { it('should display and click login button', () => { cy.visit('https://example.com/login') cy.get('#login-button').should('be.visible').click() cy.url().should('include', '/dashboard') }) })
| Step | Action | System State | Assertion | Result |
|---|---|---|---|---|
| 1 | Test starts | CI pipeline triggers Cypress test run | - | PASS |
| 2 | Browser opens and navigates to https://example.com/login | Login page loads in browser | - | PASS |
| 3 | Finds element with id 'login-button' | Login button is present on the page | Check that login button is visible | PASS |
| 4 | Clicks the login button | Browser navigates to dashboard page | URL includes '/dashboard' | PASS |
| 5 | Test ends successfully | Dashboard page is displayed | - | PASS |