27 lines
498 B
Markdown
27 lines
498 B
Markdown
# Imhotep React + Playwright Project
|
|
|
|
This project was scaffolded with `imhotep init --preset react`.
|
|
|
|
## Getting Started
|
|
|
|
```bash
|
|
npm install
|
|
npx playwright install
|
|
npm test
|
|
```
|
|
|
|
## Project Structure
|
|
|
|
- `imhotep.config.js` - Imhotep configuration
|
|
- `tests/` - Test files
|
|
- `fixtures/` - HTML fixtures for spatial testing
|
|
|
|
## Writing Tests
|
|
|
|
Use the Imhotep DSL for spatial assertions:
|
|
|
|
```typescript
|
|
const ui = imhotep(page);
|
|
await ui.expect('.header').to.be.above('.content', { minGap: 16 });
|
|
```
|