ppt-tool/frontend/cypress/e2e/wizard.cy.ts
Vadym Samoilenko 76a4e41e3b Phase 7: Testing Suite — backend unit tests + Cypress E2E framework
Backend:
- conftest with async SQLite DB, factory fixtures for all models
- pytest-asyncio config in pyproject.toml
- Tests: auth (JWT, dev login), RBAC (access service), audit (query, export),
  brand enforcement (colors, fonts, logos, contrast), retention (cleanup, purge),
  content intelligence (regex classifiers), slide mapping, review workflow,
  analytics data queries

Frontend:
- Cypress E2E config with baseUrl and viewport settings
- Custom commands (devLogin, createPresentation)
- E2E specs: login flow, wizard navigation, admin panel, review workflow
- Test scripts in package.json

Infrastructure:
- Makefile: test-e2e and test-all targets

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 16:49:23 +00:00

32 lines
912 B
TypeScript

describe("Generation Wizard", () => {
beforeEach(() => {
cy.devLogin("admin@oliver.com");
});
it("navigates through wizard steps", () => {
cy.visit("/generate/upload");
// Step 1: Upload page loads
cy.contains("Upload Your Content").should("be.visible");
// Add brief text
cy.get("textarea").type("This is a test presentation about AI in healthcare.");
// Click Next
cy.contains("button", "Next").click();
// Step 2: Configure page
cy.url().should("include", "/generate/configure");
cy.contains("Slide Count").should("be.visible");
});
it("preserves wizard state via localStorage", () => {
cy.visit("/generate/upload");
cy.get("textarea").type("State persistence test");
// Reload page
cy.reload();
// Brief text should be restored from localStorage
cy.get("textarea").should("have.value", "State persistence test");
});
});