- Fügt cypress.config.ts für E2E und Komponenten Tests hinzu - Fügt Cypress Testskripte und Docker-Compose Konfiguration hinzu - Ermöglicht automatische E2E-Tests mit separater Testumgebung 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
19 lines
437 B
TypeScript
19 lines
437 B
TypeScript
describe('Homepage', () => {
|
|
beforeEach(() => {
|
|
cy.visit('/')
|
|
})
|
|
|
|
it('loads the homepage successfully', () => {
|
|
cy.contains('Manage Your Printers')
|
|
cy.get('a[href="/printer"]').should('exist')
|
|
})
|
|
|
|
it('shows printer cards', () => {
|
|
cy.get('[class*="w-auto h-36"]').should('exist')
|
|
})
|
|
|
|
it('has working navigation', () => {
|
|
cy.get('header').should('exist')
|
|
cy.get('a[href="/"]').should('exist')
|
|
})
|
|
}) |