Collection of end-to-end tests for Diplodoc platform. Provides Playwright test suites and configuration for testing Diplodoc documentation features including terms, tabs, cut blocks, search, and Mermaid diagrams.
- End-to-end test suites — Comprehensive Playwright tests for Diplodoc features
- Test configuration — Reusable Playwright configuration with sensible defaults
- Test server — Built-in Express server for serving test documentation
- Multiple test categories — Tests for terms, tabs, cut blocks, search, and Mermaid diagrams
- Screenshot testing — Visual regression testing with Playwright screenshots
npm install @diplodoc/testpack// tests/index.spec.ts
import '@diplodoc/testpack/tests';// playwright.config.ts
import config from '@diplodoc/testpack/config';
export default config({
testDir: './tests',
// Additional Playwright configuration
});# Run all tests
npm test
# Run tests with UI
npm test -- --ui
# Run tests in headed mode
npm test -- --headed# Install dependencies
npm ci
# Build the package
npm run build
# Start test server
npm run start- Make changes or add new tests
- Run tests:
npm test -- --ui - Review test results and screenshots
- If using LLM for test improvements:
- Ask: "Can we improve something in new tests regarding rules in TESTS.md manual?"
- Add final improvements with additional questions
- Notify LLM if manual changes were made and describe reasons
- Ask: "Should we add something to TESTS.md manual? If we do, then follow 'LLM editing guide' described in top comment in TESTS.md"
The package includes test suites for:
- Terms — Testing term definitions and usage
- Tabs — Testing tab list functionality
- Cut blocks — Testing collapsible cut blocks
- Search — Testing search functionality
- Mermaid — Testing Mermaid diagram rendering
See TESTS.md for detailed testing guidelines and best practices.
For detailed information about architecture, development, and contributing, see AGENTS.md.
ISC