Tests for verifying TutorialKit works as expected in the browser. Tests are run against locally linked
@tutorialkitpackages.
pnpm exec playwright install chromium --with-deps- When running the tests first timepnpm test
pnpm start- Starts example/fixture project's development serverpnpm test:ui- Start Playwright in UI mode
Test cases are located in test directory.
Each test file has its own chapter, that contains lessons for test cases:
For example Navigation tests:
├── src/content/tutorial
│ └── tests
│ └──── navigation
│ ├── page-one
│ ├── page-three
│ └── page-two
└── test
└── navigation.test.ts
Or File Tree tests:
├── src/content/tutorial
│ └── tests
│ └── file-tree
│ └── lesson-and-solution
└── test
└── file-tree.test.ts