Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@

# Tests
/coverage
cypress/screenshots/
cypress/screenshots/

# OS
.DS_Store
Thumbs.db
2 changes: 0 additions & 2 deletions cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ export default defineConfig({
experimentalCspAllowList: true,
// Run all specs together
experimentalRunAllSpecs: true,
// Enable experimental Cypress Studio feature
experimentalStudio: true,
// Enable experimental interactive run events
experimentalInteractiveRunEvents: true,
// Enable experimental memory management
Expand Down
7 changes: 7 additions & 0 deletions cypress/e2e/landing.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,11 @@ describe("Landing Page", () => {
// Article body exists (may be hidden initially)
cy.get("#articleBody").should("exist");
});

it("should show error when article is missing", () => {
// Simulate navigating to a missing article
cy.visit("http://localhost:3000/index.html?NonExistentArticle");
cy.get("#articleBody").should("contain", "Error retrieving article");
cy.get("#articleBody").should("be.visible");
});
});
Loading