Home

Title: A cleaner architecture where the source of truth is in the database

Author: Jeff Meridian

0:00 / 0:00

This document provides a detailed overview of the jeffmeridianlocal_sanity.spec.ts test suite, designed to help coding agents understand the architecture, mocking strategies, and functional coverage of the local environment tests.

↑ Back to Top

Overview

The jeffmeridianlocal_sanity.spec.ts is a comprehensive Playwright-based test suite that validates the local development environment for the Writer Studio and its associated Eleventy-generated website. It serves as both a UI sanity check and a backend tool integration verification.

Primary Target: http://localhost:8080

↑ Back to Top

Core Architecture

1. Mocking Strategy (SQLite Isolation)

To ensure tests are non-destructive and idempotent, the suite uses Database-Level Isolation.

2. Test Grouping

The suite is divided into several logic blocks:

A. Homepage Sanity & Section Visibility

Validates that the Eleventy build is correct and all major UI sections are present.

B. Language Switching & Persistence

Tests the internationalization (i18n) logic.

C. Robust Navigation (Games & Blog)

Tests the link integrity across the site.

D. Writer Studio Tools API (MCP Integration)

Validates the Python-based MCP (Model Context Protocol) server.

E. Anti Plugin Tools (Direct Execution)

Directly tests the standalone Python plugins used for active document management.

↑ Back to Top

Prerequisites

To run these tests successfully, the following must be available on the system:

  1. Node.js & Playwright: npx playwright test
  1. Python 3: For executing the plugins and plugin_host.py.
  1. SQLite3 CLI: Must be installed and available in the $PATH for the mock database seeding.
  1. Local Server: The Eleventy dev server should be running at http://localhost:8080.

↑ Back to Top

Running the Tests

To run the full suite:


npx playwright test transcripts/tests/jeff_meridian_local_sanity.spec.ts

To run only the Python tool integration tests:


npx playwright test -g "Anti Plugin Tools|Writer Studio Tools API"

↑ Back to Top

Maintenance Notes for Agents


Comments & Ratings

Leave a Comment

#

Loading ratings...

Loading comments...